JSON to Text
Extract and clean text values from JSON objects
Get the readable content out of JSON
Sometimes you do not need the structure of a JSON file, only the words inside it: the copy in a CMS export, the messages in a chat log, the labels in a translation file. This tool walks through your JSON and prints every text and number value on its own line, leaving out the braces, brackets and key names.
How to use it
- Paste your JSON into the JSON Source box. The Sample button loads a small document with a header, nested content and a list so you can see the effect.
- Press Extract Plain Text.
- Review the Extracted Text panel and press Copy Text to take it away.
Invalid JSON produces an error dialog with the parser's message, so you can fix a stray comma or missing quote and try again. Clear removes everything in the input box.
What gets included and what does not
The tool traverses objects and arrays in the order they appear, at any depth. Strings and numbers are written out, each followed by a line break. Keys are ignored, and so are booleans and null values, since they are neither strings nor numbers. If your document has a field called published set to true, that line will simply not appear. Numbers are printed as plain digits without any label, so a price and a quantity will look the same in the output, which is worth remembering when the source has both.
Where it earns its keep
- Collecting all the visible copy from a content export so it can be proofread in a word processor.
- Gathering strings from a language file to send to a translator.
- Scanning a large API response for the human-readable parts when the field names are just noise.
- Feeding only the text values into a word counter or a text analysis tool.
Tips and edge cases
Because the key names disappear, the output shows what was said but not where it came from. If you need context, convert to another format that preserves keys instead. Long strings are shown with wrapping so lines stay readable in the result box. A top-level string or number is accepted too, and will simply be echoed back. Extremely large documents depend on your browser's memory, since parsing happens locally on the page.
Related Tools