Structured Data
JSON Formatter
Format and inspect JSON in your browser while preserving numeric text, key order, and string escapes. Your data stays on your device.
This tool runs open-source code from OmniTools (MIT License). See open-source credits.
The formatter changes whitespace between tokens without converting their values. It preserves key order and string escapes.
The result uses your selected indentation. Empty objects and arrays remain on one line.
- Read a minified API response that contains 64-bit IDs without rounding them.
Indent JSON without changing number tokens
Input: {"id":12345678901234567890,"price":1.50,"tags":["a","b"]}
Settings: Indentation: Spaces, Spaces per level: 2 (the defaults)
Result: { "id": 12345678901234567890, "price": 1.50, "tags": [ "a", "b" ] }
The output preserves the identifier digits and the trailing decimal zero.
Set indentation and locate syntax errors
- Paste one JSON value into JSON input.
- Choose Spaces or Tabs under Indentation.
- Use the reported line and column to locate a syntax error.
- Formatting does not check required fields or application rules.
- Use JSON Minifier for JSON Lines, or format each record separately.