String to JSON Converter

Convert JSON strings (escaped JSON) to normal formatted JSON

Input

Loading editor...

Output

Converted JSON will appear here

Enter a JSON string in the input area to get started

The Reverse Journey: String Back to JSON

Remember when you converted JSON to an escaped string? Well, sometimes you need to go the other way. You receive a JSON string (with all those backslashes and escaped quotes) and need to turn it back into readable, usable JSON.

This happens a lot when working with APIs that return JSON data as string values, or when reading JSON from databases, log files, or configuration systems that store JSON as text.

🔄 Common scenario:

API returns: "data": "{\"name\":\"John\",\"age\":30}" - you need the actual JSON object inside!

Escaped JSON String

What you receive (messy):

"{\"user\":{\"name\":\"Alice\",\"email\":\"alice@company.com\",\"settings\":{\"theme\":\"dark\",\"notifications\":true}},\"lastLogin\":\"2024-01-15T10:30:00Z\"}"

Impossible to read or work with! 😵‍💫

Parsed JSON

Clean, usable JSON:

{
  "user": {
    "name": "Alice",
    "email": "alice@company.com",
    "settings": {
      "theme": "dark",
      "notifications": true
    }
  },
  "lastLogin": "2024-01-15T10:30:00Z"
}

Now you can actually use this data! ✨

When You Need to Unescape JSON

API Responses

Some APIs return JSON data as escaped string values instead of proper JSON objects. You need to parse these strings to access the actual data structure.

Database Storage

JSON data stored in text fields often gets escaped when retrieved. Convert it back to proper JSON format for processing and manipulation.

Log File Analysis

Application logs often contain JSON data as escaped strings. Parse them to analyze the actual data structure and extract meaningful information.

Message Queues

Message queue systems sometimes serialize JSON as strings for transmission. You'll need to deserialize them back to JSON objects for processing.

💡 Programming tip:

This is essentially what JSON.parse() does in JavaScript - but this tool works for any language or context!