XML Escape Unescape

Escape XML-sensitive characters for safe embedding, or decode XML entities back into readable markup.

Last updated: August 2026 | By Workshelve Team

Output will appear here...

Sensitive chars

0

Known entities

0

Output chars

0

Text nodes

Escapes ampersands, angle brackets, and greater-than signs.

Attributes

Attribute mode also escapes quotes and apostrophes.

Numeric entities

Unescape mode decodes decimal and hexadecimal character references that are valid in XML 1.0.

Why XML escaping matters

XML reserves characters such as ampersands and angle brackets for markup. Escaping keeps literal content from being interpreted as tags or entity references.

This tool applies XML 1.0 character-validity rules when decoding numeric character references, so forbidden code points such as U+0000 and surrogate values are preserved instead of emitted.

Related Tools