JSON Formatter
Validate, format, and minify JSON with indentation and optional key sorting.
Open tool100% Client-Side • Zero Server Uploads
Encode and decode Unicode text or files to Base64 and Base64URL locally.
Encode and decode text and files to Base64 and Base64URL entirely in your browser. The converter handles Unicode correctly using TextEncoder and TextDecoder, supports URL-safe output, and can process a selected file without uploading it. Input is capped at 2 MB in either direction.
Base64 increases payload size by roughly a third, which matters for email attachments and JSON APIs with strict limits. Use standard Base64 for data URIs and Base64URL for URL segments and JWTs, where plus and slash characters would need escaping. Decoding is strict: remove whitespace and line breaks first, and expect an error rather than a guess when the input is malformed.
File mode reads a text file (up to 2 MB) into the input box. Nothing is uploaded.
SGVsbG8sIExvY2FsVG9vbExhYiEgRW5jcnlwdGlvbiBwcm90ZWN0cyBkYXRhOyBCYXNlNjQgb25seSByZS1lbmNvZGVzIGl0LiDwn5qA
Base64 is an encoding, not encryption. Anyone can decode it.
Select Encode or Decode, and choose between standard Base64 and URL-safe Base64URL output.
Paste text to convert, or select a file in file mode. The input is checked against the 2 MB cap before processing.
View the result and copy it to your clipboard or download it as a file.
Use Base64URL for JWT segments and URL parameters, and standard Base64 for data URIs.
Text is encoded using TextEncoder/TextDecoder so multi-byte characters are handled correctly.
File mode reads the selected file locally. Nothing is uploaded to a server.
Input is capped at 2 MB with a visible warning so the browser stays responsive.
Text is converted through TextEncoder and TextDecoder so emoji and non-Latin scripts survive a round trip.
Convert text or text-based files into a Base64URL string safe for use in URLs and query parameters.
Decode Base64-encoded data returned by an API to inspect the original content.
Encode a file to Base64 without uploading it, then copy or download the result.
Keep working in your browser with another tool from the same category.
Validate, format, and minify JSON with indentation and optional key sorting.
Open toolInspect JWT headers and payloads locally without verifying signatures or sending tokens anywhere.
Open toolTest JavaScript regular expressions with safe highlighting, capture groups, and replacement previews.
Open tool