Werkery

String Escape / Unescape

Escape and unescape strings for JSON, HTML, JavaScript literals, and SQL. Useful when embedding text in code or fixing broken JSON.

Tool by ·
ad slot ()
ad slot ()

How it works

  1. 1
    Pick format
    JSON, HTML, JS, SQL.
  2. 2
    Pick direction
    Escape or unescape.

Frequently asked

When do I need string escaping?

Embedding text inside another text format: a quote in a JSON string, an ampersand in HTML, a newline in a JS string. Without escaping, the parser sees structure instead of content.

Get new tools first.

One tool per week. No ads. Unsubscribe anytime.

Related tools

Tool designed and editorially reviewed by Felix Brübach. Text drafted with AI assistance and reviewed for legal and factual accuracy before publication. Not legal advice — for complex cases, consult a lawyer.
ad slot ()