Skip to main content

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.

Tool workspace

Your input stays in this browser.

Add the required input to continue.

Needs input

You can run the tool again after any change.

Indentation

Indentation

Your result appears here

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.

Sources: RFC 8259: JSON numbers and object names

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

  1. Paste one JSON value into JSON input.
  2. Choose Spaces or Tabs under Indentation.
  3. 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.