Tools

Home
JSON FormatterSQL FormatterJS ValidatorMinify CSS
Merge PDFCompress PDFImage to PDF
JPG to PNGPNG to WebPCrop Image

JSON to Text Converter

Flatten JSON to plain text key-value pairs with dot notation for nested objects

Your files never leave your browser
JSON Input0 chars, 0 lines
Drag & drop a JSON file here, or browse
Accepts .json files
Text Output0 chars, 0 lines
Error:
    Ready·

    Paste any JSON — API responses, config files, database exports — and get flat, readable key-value text with dot notation for nested paths like user.address.city. Pick your separator (colon, equals, or tab), toggle array indices, and hit Convert.

    And everything runs in your browser. Nothing gets uploaded.

    How It Works

    Paste JSON
    ➔
    Recursive Flattening
    ➔
    Plain Text Output

    The tool walks through every key in your JSON object, tracking the full path as it goes deeper. When it hits an actual value (string, number, boolean, null), it writes one line: the dot-separated path, your chosen separator, then the value. Arrays get indexed if you want them to — otherwise they stay as inline JSON strings.

    Examples

    Flattening a User Profile

    You pulled a user record from an API and need the fields in a readable list for a support ticket.

    INPUT
    {"name": "Sara Chen", "email": "[email protected]", "address": { "street": "742 Elm St", "city": "Portland", "state": "OR" } }
    OUTPUT
    name: Sara Chen email: [email protected] address.street: 742 Elm St address.city: Portland address.state: OR

    Config File with Arrays

    An app config with nested arrays — you need it flattened for a .env-style reference doc.

    INPUT
    {"app": "dashboard", "features": ["auth", "analytics"], "db": { "host": "db.internal", "port": 5432 } }
    OUTPUT
    app: dashboard features.0: auth features.1: analytics db.host: db.internal db.port: 5432

    Deeply Nested API Response

    A payment gateway webhook payload. Three levels deep and you just need the transaction details on one screen.

    INPUT
    {"event": "charge.completed", "data": { "id": "ch_9x4k2", "amount": 4999, "currency": "usd", "customer": { "id": "cus_abc", "email": "[email protected]" } } }
    OUTPUT
    event: charge.completed data.id: ch_9x4k2 data.amount: 4999 data.currency: usd data.customer.id: cus_abc data.customer.email: [email protected]

    Who Uses This

    👨‍💻 Developers

    Flatten API responses for quick debugging without scrolling through nested brackets.

    📊 Data Analysts

    Turn JSON exports into tab-separated text for pasting straight into spreadsheets.

    🎯 QA Engineers

    Compare flattened outputs side by side to spot differences between test runs.

    📝 Technical Writers

    Generate readable key-value lists from JSON schemas to include in documentation.

    Common Mistakes

    Pasting invalid JSON

    A trailing comma or missing quote will break the parse. If you see an error, run your JSON through a validator first. The most common culprit is a comma after the last item in an object.

    Forgetting to toggle array indices

    With indices off, arrays show up as raw JSON strings in the output. If your data has arrays and you want each element on its own line, make sure the array indices option is checked before converting.

    Expecting round-trip conversion

    Flattening is lossy. A number like 42 becomes the text "42" and there is no way to tell them apart later. Don't use this output as a data source you plan to convert back — treat it as a human-readable snapshot.

    Technical Details

    Frequently Asked Questions

    How do I convert JSON to plain text?

    Paste your JSON into the input box and click Convert. The tool walks through every nested key and outputs each value on its own line using dot notation — so {"a":{"b":1}} becomes a.b: 1. You can copy the result or download it as a .txt file.

    What happens to nested objects and arrays?

    Nested objects get flattened with dots between keys — user.address.zip, for example. Arrays can either be expanded with numeric indices (items.0, items.1) or kept as inline JSON strings. Toggle the array indices option depending on what you need.

    Is my data safe when using this tool?

    Yes. The conversion happens entirely in your browser using JavaScript. Nothing is sent to a server. You can disconnect from the internet and it still works — go ahead and try.

    Can I use tab-separated output in Excel or Google Sheets?

    Absolutely. Set the separator to "tab," convert your JSON, then paste the output directly into a spreadsheet. Keys land in column A, values in column B. It is the fastest way to get structured JSON data into a sheet without writing a script.

    What's the difference between JSON to text and JSON to CSV?

    JSON to text gives you one key-value pair per line with dot-notation paths — great for reading and debugging. JSON to CSV assumes your data is an array of similar objects and turns each object into a table row with column headers. Use text for inspecting structure, CSV for tabular data.

    Share: