DevToolsmith

XML Escape / Unescape

Escapes text with the five predefined XML entities and decodes predefined or numeric references.

Runs 100% in your browser — nothing is uploaded

Input
Tip: drop a file here17 chars · 23 bytes · 2 lines
Result
0 chars · 0 bytes · 0 lines

Up to 200,000 input characters and 2 million output characters. Processing stays on this device.

Use XML Escape / Unescape

Escapes text with the five predefined XML entities and decodes predefined or numeric references. Start with the sample, select the options and run the tool. Copy or download the result after reviewing it.

Behavior and limits

Escapes text with the five predefined XML entities and decodes predefined or numeric references. This is text escaping, not XML document parsing. Invalid XML 1.0 characters, unknown entities and malformed references are rejected.

Example input

Hello "Ada"
你好 👋

Expected behavior for the example

Escapes the quotes, line break and Unicode characters as string contents; unescape returns the original text.

Check important output in the application that will consume it. Use the tool directory to find related formats and tasks.

Frequently asked questions

How does XML Escape / Unescape handle my input?

Escapes text with the five predefined XML entities and decodes predefined or numeric references. This is text escaping, not XML document parsing. Invalid XML 1.0 characters, unknown entities and malformed references are rejected.

Is my input uploaded or saved automatically?

Processing runs locally in this browser. Input and results are not saved automatically. Downloads happen only when you choose them. The static preview blocks scripts and external resources when one is available.