HTML Entity Encoder
Escape text to HTML entities, named or numeric, and decode entities back to plain characters.
Runs in your browser. Nothing leaves this device.
Open HTML Entity Encoder
Free, no account, no watermark and no daily limit.
How to use HTML Entity Encoder
- 1Pick Encode or Decode.
- 2Paste your text or HTML.
- 3Copy the result. When encoding you can choose named or numeric entities and how much to escape.
Questions
Which characters must be escaped?
Inside HTML, the characters & < > " and ' are the ones that can break markup. Escaping only those keeps the text readable and safe to paste into a page.
Named or numeric?
Both work in every browser. Named ones like © are easier to read. Numeric ones like © cover every character, including emoji.
Why did – turn into a dash?
Browsers read the numbers 128 to 159 as the old Windows-1252 characters, so – is an en dash. The decoder does the same.
Is my text sent anywhere?
No. Encoding and decoding happen in your browser.
Is it free?
Yes. No account, no watermark and no daily limit.
Related tools
- DeveloperBase64 EncoderEncode text or files to Base64 and decode it back, with URL-safe and data URL options.
- DeveloperDiff CheckerCompare two texts and see what was added and removed, line by line or word by word, and download a patch.
- DeveloperHash GeneratorGet the MD5, SHA-1, SHA-256, SHA-384 and SHA-512 of text or any file, and check it against a hash you were given.
- DeveloperJSON FormatterFormat, check and minify JSON, with the exact line of any error.
- DeveloperJWT DecoderRead the header and claims of a JSON Web Token, see when it expires, and check an HMAC signature.
- DeveloperRegex TesterTest JavaScript regular expressions live: every match highlighted, capture groups in a table, and a replace preview.