Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to text.
Use toolFormat, minify and validate JSON, with the exact line of any error.
Paste your JSON into the input box, or type it.
Choose an indent size and press Format to pretty print it, or Minify to remove all whitespace.
If the JSON is invalid, the error message shows the line and column to fix.
Copy the result or download it as a .json file.
JSON (JavaScript Object Notation) is the format most APIs, config files and web apps use to exchange data. Minified JSON from an API response is hard to read, and a single missing comma or quote makes the whole document invalid.
This formatter parses your JSON exactly as a browser or server would, so if it formats here it is valid everywhere. Formatting adds indentation and line breaks; minifying strips them to make the payload as small as possible.
Everything runs in your browser. Your JSON is never sent to a server, so it is safe to paste API responses that contain private data.
No. Formatting and validation happen entirely in your browser with JavaScript. Nothing you paste is uploaded or stored.
The most common causes are a trailing comma after the last item, single quotes instead of double quotes, unquoted property names and comments. JSON allows none of these. The error shows the line and column where parsing stopped.
Format adds indentation and line breaks so people can read the data. Minify removes every unnecessary space and line break so the data is as small as possible to send or store.
There is no fixed limit. Very large files (tens of megabytes) depend on your device memory and may take a moment to format.
Encode text to Base64 or decode Base64 back to text.
Use toolRead the header and payload of a JSON Web Token and check its expiry.
Use toolTest regular expressions with highlighted matches and capture groups.
Use toolDesign linear and radial gradients and copy the CSS.
Use tool