HTML Entity Encoder
Convert special characters to HTML entities and back.
Entities, encoded and decoded
HTML gives special meaning to a handful of characters, and showing them literally means converting them to entities. This tool encodes those characters and decodes entities back to plain text.
Encoding handles the ampersand, angle brackets, and quotes, with an option to escape every non-ASCII character as a numeric entity. Decoding resolves named and numeric entities alike, so you can round-trip content safely.
Two-way and private
Conversion runs in your browser, so your content is never uploaded.
Frequently Asked Questions
What gets encoded?
The characters that carry meaning in HTML — ampersand, less-than, greater-than, quotes, and apostrophes — plus, optionally, all non-ASCII characters as numeric entities.
What does decoding handle?
Named entities like the ampersand and quote entities, plus numeric entities in decimal and hexadecimal form.
Why encode entities?
To display code or special characters as text without the browser interpreting them as markup.
Browse the full set of free, private, in-browser tools.