Escaping runs entirely in your browser — nothing is uploaded.
XML reserves a handful of characters for markup, so reserved characters in your data must be written as predefined entities. The XML 1.0 specification defines exactly five. This tool converts text to and from those entities in your browser — nothing is uploaded.
| Character | Entity | Required in |
|---|---|---|
& | & | everywhere |
< | < | text & attributes |
> | > | after ]]> |
" | " | double-quoted attrs |
' | ' | single-quoted attrs |
XML uses ' for the apostrophe; HTML uses ' because ' was not defined in HTML 4. If your output is a web page, use HTML Escape instead.