BTC $64,505.00 −1.17% ETH $1,815.96 −0.77% USDT $0.9994 −0.02% BNB $590.51 −1.08% USDC $0.9997 −0.01% XRP $0.9557 −1.37% SOL $71.75 −0.99% TRX $0.3050 +0.39% FIGR_HELOC $1.04 — STETH $1,796.44 −1.86% HYPE $68.70 +2.84% ZEC $906.37 +0.33% XMR $493.53 −1.00% DOGE $0.0588 −1.13% BTC $64,505.00 −1.17% ETH $1,815.96 −0.77% USDT $0.9994 −0.02% BNB $590.51 −1.08% USDC $0.9997 −0.01% XRP $0.9557 −1.37% SOL $71.75 −0.99% TRX $0.3050 +0.39% FIGR_HELOC $1.04 — STETH $1,796.44 −1.86% HYPE $68.70 +2.84% ZEC $906.37 +0.33% XMR $493.53 −1.00% DOGE $0.0588 −1.13%

JSON String Escape and Unescape

Turn quotes, backslashes and line breaks into \" \\ and \n for JSON, or read an escaped string.

  • 100% Free
  • No sign-up
  • Runs in your browser

What is the JSON String Escape and Unescape?

Putting text with quotes, backslashes or line breaks inside a JSON string needs escaping, or the JSON breaks. Paste the text and get a safe string value, with or without the surrounding quotes, or unescape a JSON string back into plain text.

Features

Safe strings

Quotes, backslashes and control characters escaped.

Unescape too

Read escaped strings from logs and APIs.

How to use the JSON String Escape and Unescape

  1. 1

    Paste the text.

  2. 2

    Pick escape or unescape.

  3. 3

    Copy the result.

Who it is for

API requests

Put a block of text or HTML inside a JSON body.

Tips for better results

  • Unicode letters do not need escaping in JSON. They can stay as they are.

Questions people ask

Is it free?

Yes, free and private.

Do I need the quotes?

Tick "add quotes" to get a complete JSON string value.

Trustpilot

What our customers say

4.8 / 5Trustpilot rating
FREE BITCOIN TOOLS

Stuck Bitcoin transaction?

Paste your TXID, see where it stands, and give it a free push. No signup, no wallet access.

Try the free accelerator
  • Free
  • No signup
  • Live status