Which SQL escape conventions does this tool decode?
Both major dialect families. ANSI SQL (PostgreSQL, SQL Server, Oracle, SQLite) doubles single quotes — '' represents one literal apostrophe. MySQL in default sql_mode also uses backslash escapes — \\, \n, \r, \0, \'. The tool reverses both: '' becomes ', \\ becomes \, and the control-character forms become real newlines, carriage returns, and NUL bytes.
How do I extract a value from a SQL dump for unescaping?
In a pg_dump or mysqldump INSERT statement the value lives between two single quotes. Copy the content between those quotes — not the surrounding quotes themselves — into the input. Run the tool and you have the original stored value. The same procedure works for migration files and seed scripts.
What is the order of operations when decoding?
The tool replaces '' first, then the control-character escapes (\n \r \0), and only then collapses \\ to \. Doing backslashes last prevents accidentally double-decoding sequences like \\\n, where the original literal was a backslash followed by an n — the doubled backslash protects the literal n from being interpreted as a newline escape.
Why does my output still contain backslashes?
You probably had a literal backslash in the original value. Doubled backslashes in the dump represent one real backslash in the data. After decoding, expect to see single backslashes in file paths, regex patterns, or stored serialized blobs.
Will this decode dollar-quoted PostgreSQL strings?
No. Dollar-quoted strings ($$ … $$ or $tag$ … $tag$) bypass the escaping rules entirely — the content between the dollar markers is taken literally. You do not need to unescape it; you just strip the markers. The tool handles the standard quote-doubled and backslash-escaped string conventions, not dollar quoting.
Can I decode an entire INSERT statement at once?
Paste only the value portion — the text between the surrounding single quotes — for each column. Pasting the whole statement (with the keyword INSERT, parens, and commas) produces a result that mixes SQL syntax with decoded text, which is rarely what you want. For multi-row scripts, decode each value individually.
How does this handle E'…' escape-string literals?
PostgreSQL escape-string literals (prefixed with E) accept C-style backslash escapes including \n, \r, \xHH, and \uXXXX. This tool decodes the common cases (\n, \r, \0, \\) but not the hex or Unicode forms — for those, use a JavaScript or JSON unescape tool, which natively supports \uXXXX.
Is my SQL data sent to a server?
No. Decoding is pure string substitution running in your browser. Customer records, PII, and credentials extracted from SQL dumps never leave the page. Verify in DevTools → Network — no request fires when you click Unescape.