String Escape & Unescape

Escape and unescape strings for JSON, JavaScript, CSV, SQL, regular expressions, and XML. Handles quotes, newlines, backslashes, and Unicode. Free and private.

Format
Direction
Escaped

Frequently asked questions

Why escape strings?

Quotes, backslashes, and line breaks have special meaning inside code. Escaping lets them appear as literal characters.

How does SQL escaping work?

Single quotes are doubled ('' ) inside a string literal. For real queries, use parameterized statements instead.

What does regex escaping do?

It puts a backslash before characters like . * + ? so they match literally.