HTML Decode & Encode Online
Turn HTML entities back into text (<p> café becomes <p> café), or escape text so it shows as text inside HTML. As you type, in your browser.
How to use the HTML entity decoder
- Choose Decode entities or Encode text.
- Paste your text; the result updates as you type.
- Copy the result, or swap it into the input to go the other way.
What HTML entities are
HTML entities are codes for characters that would otherwise be read as HTML or are hard to type: < is <, > is >, & is &, " is a double quote, and é or é is é. Decoding turns them back into the characters; encoding escapes & < > " and ' so text shows as text inside a page instead of being read as tags.
Questions
Which entities can it decode?
All of them: named entities like … and →, decimal ones like é, and hex ones like 👋. Decoding uses your browser's own HTML parser, which knows the full list.
Is it safe to paste HTML from somewhere else?
Yes. The text is decoded as plain text, so no script or image in it runs or loads, and nothing is sent to a server.
What does 'Also encode accents, symbols and emoji' do?
Every character outside basic ASCII becomes a numeric entity, so café 👋 becomes café 👋. That's only needed for systems that can't handle UTF-8; for normal web pages, leave it off.
Why is my text still full of &lt;?
It was encoded twice. Decode it, then click Swap and decode again.