Skip to content
UtiliveDeveloper utilities
  • All tools
    • JSON
    • JSON Schema Validator
    • JSONPath Runner
    • JSON <> YAML
    • JSON Escape / Unescape
    • JSON Diff
    • CSV <> JSON
    • CSV Toolkit
    • Text Diff
    • String Tools
    • Text Counter
    • Escape / Unescape
    • Slug Generator
    • Lorem Ipsum
    • List Comparer
    • List Delimiter
    • List → Array
    • List → JSON Array
    • Delimiter & Formatter
    • Code Formatter
    • HTML Formatter / Minifier
    • SQL Formatter
    • Markdown Preview
    • Markdown Exporter
    • UUID
    • UUID Inspector
    • cUID Generator
    • Random String
    • Password Generator
    • Secret Key
    • User-Agent
    • Base64 Text
    • Base64 Image
    • URL Encoder / Decoder
    • Hash (MD5/SHA*)
    • JWT Debugger
    • HMAC & AES
    • Bcrypt
    • Number Base Converter
    • Unit Converter
    • Date/Time Toolkit
    • Timestamp Converter
    • Color Tools
    • QR Code
    • Cron Parser
    • Regex Tester
    • Regex Library
    • WHOIS Lookup
    • DNS Lookup
    • Image Tools
    • Support
© Utilive.dev
AboutPrivacySupport

JSON escape / unescape

Convert text to a JSON-safe string or parse one back to plain text.

Examples

Input

Output

About JSON escaping

Escaping converts characters that would break a JSON string (quotes, newlines, backslashes) into their escape sequences. Unescaping reverses the process. Everything runs locally.

  • Quotes, backslashes, and control chars need escaping.
  • JSON.stringify handles all special chars correctly.
  • JSON.parse only works on valid JSON syntax.
  • Use this when embedding strings inside JSON.