HTML5 · XML 1.0 · named & numeric entities
Escapes characters that would be parsed as markup: &, <, >, ", ', and optional full entity encoding for all characters via numeric references.
Text → HTML entities box — the encoded output appears instantly in Entity-encoded.HTML5 mode (default) or XML mode (bare minimum).Named entities only to escape just the special characters and leave everything else untouched, or leave it unchecked to also convert every other character to a numeric reference.Copy result to copy the encoded string to your clipboard.HTML entities → Text and read the plain text in Decoded text.Clear any time to reset a box and start over.Turning &, <, >, ", and ' into entities keeps user input from being parsed as tags or attributes.
To display a snippet like <div> in HTML you must escape the angle brackets — this tool produces exactly that.
Paste double-escaped text such as &lt; and recover the original < character.
Leave Named entities only unchecked and every character becomes a decimal reference like A, so nothing is ever interpreted as markup.
Beyond the core five, the decoder resolves names like and © through the browser's own HTML parser.
Everything runs in your browser. Nothing is uploaded, logged, or sent to a server.
It encodes text into HTML/XML entities and decodes them back. Encoding replaces special characters with named entities such as & and <, or numeric references like A; decoding reverses that.
The five markup-significant characters: & → &, < → <, > → >, " → ", and ' → '.
Unchecked (the default), every other character also becomes a decimal reference such as A, so even ordinary letters are encoded. Checked, only the five special characters are escaped and everything else passes through unchanged.
Both modes escape the same five characters to named entities in this tool. The XML mode is labeled bare minimum because XML only strictly requires & and < to be escaped, but the tool applies the full five-character set in either mode.
Encoding emits decimal references, such as A for the letter A. The decoder accepts both decimal (A) and hexadecimal (A) forms.
Yes. Numeric references like 😀 and 😀 decode to their Unicode code point, and named entities beyond the core five — such as and © — are resolved with the browser's own HTML parser.
No. All encoding and decoding runs locally in JavaScript. Your input is never sent to, stored on, or logged by a server.