JSON Formatter

Paste JSON to make it readable — and find out exactly where it’s broken if it isn’t valid.

  • Free, no sign-up
  • Runs in your browser

Drop your file here, or

TXT, CSV, JSON, Markdown, HTML, XML, DOCX, PDF, RTF and more

Type, paste with Ctrl V, or drop a file

Options

Indentation

or press Ctrl EnterRuns in your browser

Result

Your formatted JSON will appear here.

Add your text, then press Format JSON.

How to use JSON Formatter

  1. Paste your text into the input box, or drop a file onto it.
  2. Choose your options.
  3. Press Format JSON.
  4. Copy the result or download it in the format you need.

Example

Before
{"name":"TextVix","tools":["clean","sort"],"free":true}
After
{
  "name": "TextVix",
  "tools": [
    "clean",
    "sort"
  ],
  "free": true
}

2-space indentation.

Good for

  • Reading API responses
  • Checking config files for syntax errors
  • Sorting keys to compare two JSON documents

Your data stays exactly the same

Unlike many formatters, TextVix doesn’t convert numbers through JavaScript, so large IDs such as 12345678901234567890 and values like 1.50 keep every digit.

What happens to your text

Your text is processed in your browser and kept only in this tab’s memory. It is not uploaded, saved or used for analytics.

Related guides

  • How-to

    How to Convert CSV to JSON

    Turn CSV rows into JSON objects using the header row, detect numbers safely, handle semicolons and quoted commas, and convert from Excel.

  • Explainer

    JSON vs XML vs YAML

    How JSON, XML and YAML represent the same data, what each is good at, common gotchas such as YAML’s “no” problem, and how conversion works.

Questions about JSON Formatter

More answers in the TextVix FAQ.

Why is my JSON invalid?

Common causes are trailing commas, single quotes, comments and unquoted keys. The error message tells you what was expected and where.

Can I make JSON smaller instead?

Use the JSON Minifier.

Is my text uploaded anywhere?

No. This tool runs entirely in your browser. Your text and files are never sent to a server or stored.