HTML Entity Encoder/Decoder
Encode special characters to HTML entities (& < > " ’) and decode named, decimal, or hex entities back to text.
HTML Entity Encoder/Decoder — HTML reserves a handful of characters that have special meaning in markup: &, <, >, ", and '. When you want those characters to appear as text inside an HTML document, you replace them with entities like &, <, and ".
All conversion happens locally in your browser. No text leaves your device.
Was HTML Entity Encoder/Decoder useful?
What is html entity encoder/decoder?
HTML reserves a handful of characters that have special meaning in markup: &, <, >, ", and '. When you want those characters to appear as text inside an HTML document, you replace them with entities like &, <, and ".
This tool encodes plain text to entities (escaping only the reserved characters by default, or every non-ASCII character in "all" mode) and decodes any combination of named (©), decimal (©), and hex (©) entities back to the characters they represent.
How to use it
-
Encode or decode
Switch the mode with the toggle at the top of the page.
-
Paste your text
Type or paste into the input box. Output updates as you type.
-
Copy the result
Use the Copy button to put the converted text on your clipboard.
Examples
Encode a tag
Convert <div> to its escaped form.
Result: <div>
Decode a named entity
© 2024 — Uttir → © 2024 — Uttir
Result: © 2024 — Uttir