Loading…

How to use String Escaper

Paste text, pick a target context (JSON, JS, HTML, SQL, regex or shell) and choose escape or unescape. The tool applies that context's escaping rules to your string.

Frequently asked questions

Why escape strings?

Escaping neutralizes characters that have special meaning in a context — like quotes or backslashes — preventing broken syntax and injection bugs.

What does regex escaping do?

It backslash-escapes metacharacters such as . * + ? ( ) so the string matches literally instead of as a pattern.

Is SQL escaping enough to stop injection?

No — always use parameterized queries. Escaping helps for display and testing but prepared statements are the real defense.

More Developer Tools

ASCII Table
0-127 searchable ASCII reference.
HTML Entities Ref
Search HTML entities quickly.
CSS Units Ref
All CSS units with preview.
Git Cheatsheet
Interactive Git command guide.
Linux Commands Ref
Search Linux commands + examples.
Regex Cheatsheet
Regex patterns with live test.
HTTP Headers Ref
Common request/response headers.
Color Names Ref
CSS named colors palette.
Lorem Ipsum Advanced
Words/sentences/paragraphs generator.
Hash Generator Advanced
MD5/SHA1/SHA256/SHA512 side-by-side.
Color Gradient CSS
Linear/radial/conic gradient generator.
Box Shadow Generator
Live CSS box-shadow preview.

← View all Developer ToolsBrowse all 1,100+ tools →