Escape & Unescape — HTML, JSON, Java, SQL & CSV Strings
Escape and unescape strings for HTML, XML, Java, C#, JavaScript, JSON, CSV (RFC 4180), and SQL.
Cách dùng
- 1 Pick the target language — each has its own escape rules.
- 2 Toggle Escape (text → literal) or Unescape (literal → text).
- 3 Paste your raw or escaped input. Output updates as you type.
- 4 Use Swap to flip input and output instantly.
Vì sao dùng công cụ này
- 8 languages — HTML, XML, Java, C#, JavaScript, JSON, CSV (RFC 4180), and SQL.
- Per-language rule tables — Java forces ASCII-only \uXXXX, JSON uses native JSON.stringify, CSV follows RFC 4180.
- JSON path uses the native parser — no edge cases hand-rolled.
- Pure client-side. No upload, no analytics on your content.
Câu hỏi thường gặp
Why does Java force ASCII-only output?
Java source files are commonly ISO-8859-1 by default and editors / SCM diffs handle ASCII most safely. The Java escaper emits \uXXXX for any non-ASCII character; the C# and JavaScript ones keep Unicode characters as-is.
Does CSV escape every field?
It treats the entire input as a single field. If the field contains a comma, quote, or newline it wraps in quotes and doubles internal quotes (RFC 4180). For full-row CSV processing use a dedicated parser.
SQL: backslash or quote doubling?
The tool uses quote-doubling (''), which is portable across MySQL, PostgreSQL, SQLite, and SQL Server. Backslash escapes work only in MySQL and break on most other databases.
Related tools?
See HTML Entities Converter for named-entity tables and URL Encoder for percent-encoding.
Escape & Unescape là gì?
An Escape & Unescape is a tool that escapes and unescapes strings for many languages and formats directly in the browser. It applies the escaping rules of HTML, XML, Java, C#, JavaScript, JSON, CSV (RFC 4180), and SQL so special characters can be safely embedded, and reverses each transformation to recover the original text.
Escape & Unescape là công cụ lập trình miễn phí của Zerethon Tools. Escape and unescape strings for HTML, XML, Java, C#, JavaScript, JSON, CSV (RFC 4180), and SQL. Chạy hoàn toàn trong trình duyệt — không đăng ký, không tải lên.
- Danh mục
- Lập trình
- Giá
- Miễn phí
- Quyền riêng tư
- Chạy trên trình duyệt
- Đăng ký
- Không cần
Quyền riêng tư
Dữ liệu của bạn không bao giờ rời khỏi trình duyệt trừ khi được nêu rõ. Escape & Unescape chạy hoàn toàn phía client — không tải lên máy chủ, không ghi log, không theo dõi dữ liệu bạn nhập.
Công cụ liên quan
JSON Formatter
Format, validate, and minify JSON online. Free, no signup — your data never leaves your browser.
Mở công cụSQL Formatter
Format SQL queries online — beautify MySQL, PostgreSQL, SQLite, SQL Server, Oracle, and BigQuery.
Mở công cụUUID Generator
Generate UUIDs online — v1, v4, v7, and Nil. Bulk generation up to 10,000. Free, no signup.
Mở công cụPassword Generator
Generate strong, cryptographically random passwords. Configurable length and character sets — runs in your browser.
Mở công cụBuild, share, and grow on Zerethon Social
Free signup. Earn points, collect achievements, and connect with creators worldwide.