Why it matters
A stray quote or newline breaks JSON, opens an SQL injection or splits a shell argument. Each context has its own escaping rules.
Paste once and pick the target, or reverse an escaped string you found in a log.
How to use it
- Type or paste your input; the example shows the format.
- Press Convert. Results also update as you type.
- Read the summary line, then the table, notes or output below it.
- Copy or download what you need. Nothing leaves this page.
FAQ
Is SQL escaping enough to stop injection?
No. Use parameterised queries. Escaping here is for one-off scripts and fixtures.
How does shell escaping work?
It wraps the value in single quotes and turns ' into '\''.
Is my input uploaded?
No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.
Can I rely on the result?
It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.