Format Code Now
/
ConvertJSON to Text Converter Next: OPML to JSON Converter ›

JSON to Text Converter

CV-64

Paste JSON and get readable plain text. Choose an indented outline, one line per key path, or just the values, one per line.

Runs in your browser. Nothing is uploaded.

JSON

Text

How to use it

  1. Paste your JSON into the input box, or open a .json file and drop it on the box.
  2. Choose Outline, Key paths or Values only.
  3. Set the indent and whether null shows as the word null or as blank.
  4. Copy the text or download it as a .txt file.

Three ways to read the same data

Outline writes key: value lines, indents nested objects, and puts a dash in front of each array item. Key paths writes one line per value, like address.city = London and tags[0] = math, with keys that contain spaces or symbols written as ["my key"]. Values only writes each value on its own line in document order. Pick the outline for people, key paths for searching with grep, and values to count or paste into a list.

Numbers, strings and quotes

Values are written exactly as they appear in the JSON. A 20 digit ID is not rounded, 1.50 stays 1.50, and escaped characters are decoded to the characters they represent. Quotes are not shown, so the string "5" and the number 5 look the same in the text. A string that spans several lines continues on indented lines in the outline and shows as \n in key paths. Empty objects and arrays appear as {} and [].

One-way output

The text is a reading view. It does not keep types, so it cannot be turned back into the same JSON. If the input is not valid JSON, you get an error with the line and column where the parser stopped. Very deep nesting, more than 500 levels, is rejected with a message instead of freezing the page.

Error messages and what to do

MessageWhat it meansFix
Input is not valid JSON: Expected a string key at line 1, column 8The text is not valid JSON. This example comes from a trailing comma.Go to the line and column shown and fix the comma, quote or bracket there.

Questions people ask

How do I convert JSON to plain text?

Paste your JSON and choose Outline for an indented key: value layout. The text appears immediately and you can copy it or download a .txt file. Nothing is sent over the network.

Can I get one line per value with its path?

Choose Key paths. Each line looks like address.city = London or tags[0] = math, so you can search or compare the output as plain text.

Does it round large numbers?

No. Numbers are copied as written, so a 20 digit ID or a value such as 1.50 comes out unchanged. Many converters parse numbers into floats first and lose the last digits; this one does not.

How are nulls shown?

As the word null by default. Switch the option to Empty if you want a blank where the null was. In the Outline view the key is still written, with nothing after the colon.

Can I convert the text back to JSON?

No. Types and quoting are not kept in the text, so the conversion only goes one way. Keep the original JSON if you need it.

About this tool

Outline writes key: value lines, indents nested objects, and starts each array item with "- ". Key paths writes one line per value, such as address.city = London and tags[0] = math, and a key with spaces or symbols is written as ["my key"]. Values only writes each value on its own line, in the order they appear. Numbers and strings come out exactly as written in the JSON, so 12345678901234567890 and 1.50 are not rounded or reformatted. Quotes are not shown, so the string "5" and the number 5 look the same. In the outline a multi-line string continues on indented lines; in the other two views line breaks become \n or a space. Empty objects and arrays show as {} and []. null shows as the word null or as nothing, as you choose. This is a reading view, not a format that can be turned back into JSON, and invalid JSON is rejected with its line and column.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.