HTML Entity Encoder
- Free forever
- No sign-up
- Runs in your browser
Encode text for HTML (& < > " become & < …) or decode HTML entities back into normal text.
About HTML Entity Encoder
Makes text safe to show inside HTML by turning &, <, >, double quotes and apostrophes into entities, so code samples, user comments or product names appear as text instead of breaking the page. You can also encode every accent, symbol and emoji for systems that only accept plain ASCII, using readable names like © where they exist. Decoding turns any named, decimal or hex entity back into normal characters.
How to use HTML Entity Encoder
- Type or paste the text you want to encode, or text full of entities that you want to decode.
- Tick Also encode accents, symbols and emoji if the page might not be saved as UTF-8.
- Leave the names option ticked for readable named codes, or untick it for numeric codes.
- Click Encode or Decode, then click Copy, or Use result as input for the next step.
How your data is handled
Encoding and decoding happen in your browser, with no extra downloads. The text you paste isn't uploaded or stored, and decoded HTML is never run as code.
Limits and accuracy
- Only a short list of common symbols, such as © and €, get names; others become numbers like é.
- Entity encoding makes text safe between tags, but URLs, scripts and unquoted attributes need their own escaping.
Questions and answers
Which characters are always encoded?
The five that matter in HTML: the ampersand, the less-than and greater-than signs, double quotes and single quotes. That's enough to show code or user text as plain text on a web page.
When should I encode accents, symbols and emoji too?
When a page or email might not be saved as UTF-8, or a system only accepts plain ASCII. Every character beyond basic English becomes a code, using a readable name where the tool knows one.
Can it decode any HTML entity?
Yes. Decoding uses your browser's own HTML rules, so named, decimal and hex entities all turn back into normal characters.
Do I need to sign up?
No. HTML Entity Encoder and Decoder is free with no sign-up, no login and no daily limit, and there's nothing to install. It works on a phone as well as a PC.
Is my text sent to a server?
No. HTML Entity Encoder and Decoder runs in your browser, so what you paste stays on your device. That makes it safe for passwords, tokens, customer data and anything else private.
What is the HTML code for & or <?
& for the ampersand and < for the less-than sign. Paste text and every special character is encoded, or paste encoded text to turn it back into readable characters.