Free tools that run in your browser. Use any tool without an account.

Favourites Cart
Sign in
Join free

String Escape Unescape

  • Free
  • Runs in your browser
  • No account needed

Use the tool to escape or unescape strings for JSON, JavaScript, HTML, URL, SQL, CSV and more; it runs in your browser, returns the converted text instantly, and one click copies the output.

String Escape Unescape runs in your browser. Your text is never uploaded or stored.

Runs in your browser. Your files and values are not sent to us. Report a problem
Advertisement

About String Escape Unescape

This is a browser-only text tool that escapes or unescapes strings for a specific target context. You pick an option such as JSON escape, JavaScript unescape, HTML escape, URL encode, SQL escape or CSV unescape. The tool shows the converted text immediately and copies it with one click. Nothing you type leaves your device. Developers, QA engineers, support staff and technical writers use it to prepare payloads, build literals, debug encoding issues, and fix pasted data. The tool follows the usual format rules for each context, for example JSON escaping per RFC 8259 and percent-encoding for URLs per RFC 3986. It does not attempt to guess SQL dialects or sanitize HTML. Use it to transform text quickly in your browser, then paste the result into your code, query, or file.

How to use it

  1. 1Paste or type the source text into the input box.
  2. 2Choose the format and direction (for example, JSON escape or URL decode).
  3. 3Click Convert to view the result in the output pane.
  4. 4Click Copy to copy the output to your clipboard.
Advertisement

Worked example

Input: Hello "Bob", how are you? (choose JSON escape) Result: Hello \"Bob\", how are you?

How it works

Text tool that runs in the browserOptions: JSON escape, JSON unescape, JavaScript escape, JavaScript unescape, HTML escape, HTML unescape, URL encode, URL decode, SQL escape, SQL unescape, CSV escape, CSV unescapeOne click copies the outputNothing typed is uploaded

Source: RFC 8259, The JSON Data Interchange FormatRFC 3986, Uniform Resource Identifier (URI): Generic SyntaxWHATWG HTML Standard, Named character references. Last checked 5 November 2026.

What it is good for

  • Runs entirely in your browser, so nothing is uploaded.
  • Supports JSON, JavaScript, HTML, URL, SQL and CSV conversions.
  • One-click copy makes pasting results fast.
  • Does not validate or adapt SQL for specific database dialects; use prepared statements for SQL safety.
  • Does not sanitize user HTML; it only encodes or decodes character references.
Advertisement

Questions people ask

What does escape versus unescape mean?

Escape converts characters that would be interpreted by a target context into safe sequences. Unescape converts those sequences back to the original characters.

How does JSON escape work here?

JSON escape replaces backslash and quote characters and encodes control characters as backslash sequences or \uXXXX. The tool follows JSON string rules from RFC 8259.

Will URL encode use UTF-8?

Yes. The tool percent-encodes the UTF-8 bytes for non-unreserved characters, matching RFC 3986 recommendations used by browser APIs.

Can I trust SQL escape to prevent injection?

No. Escaping can reduce syntax errors but is fragile and dialect-dependent. Use parameterized queries or prepared statements for real protection.

Does the tool upload my text to a server?

No. All conversions run in your browser. Nothing you type is uploaded or stored on a server.

What about CSV escaping rules?

CSV escaping follows common practice: fields with commas, quotes or newlines are quoted and internal quotes are doubled, similar to RFC 4180 conventions.

Can I convert nested escapes, such as JSON inside HTML?

Yes. You can apply multiple conversions manually. Test the final output where it will be used to ensure correct nesting.

Help keep every tool free

FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.

Advertisement
Advertisement