JSON Formatter
Format or validate JSON with 1, 2, or 4-space or tab indentation.
Inputs
Results
// invalid JSON: Unexpected end of JSON input
About this tool
Paste JSON to get it pretty-printed with 1, 2, or 4-space or tab indentation. Invalid JSON is reported with the parser's exact error and position.
How to use
- 1Paste your JSON into the input — it can be minified or already pretty-printed.
- 2Choose the indent: 1, 2, or 4 spaces, or Tab.
- 3Read the formatted JSON in the output; the header shows how many lines the result occupies.
- 4If you see an invalid JSON message, fix the first reported error and try again.
Frequently asked questions
Related tools
Base64 Encoder / DecoderEncode and decode Base64, with URL-safe mode.URL Query String BuilderBuild and parse URL query strings.Password Hash GeneratorGenerate and compare password hashes.Code DiffDiff two code snippets with word-level detail.UUID GeneratorGenerate UUID v4 and v7 in batches, with prefixes.Base64 Data URI GeneratorTurn text, CSS, JS, JSON, or SVG into a data:<mime>;base64, URI — UTF-8 safe.