HTML Entity Encoder
Convert &, <, >, quotes, and apostrophes into their HTML entity equivalents.
Converts the five characters HTML treats specially — &, <, >, ", ' — into their entity equivalents (&, <, and so on), so the text displays as literal characters instead of being interpreted as markup when pasted into an HTML document.
Example: <div class="card">Tom & Jerry's Show</div> becomes <div class="card">Tom & Jerry's Show</div> — safe to drop into an HTML page as visible text.
How it works
- Paste text or markup
- Reserved HTML characters are converted to entities instantly, on your device
- Copy the encoded result
Frequently asked questions
Why would I need to encode HTML entities?
Any time you want a character like < or & to display as a literal character on a web page instead of being interpreted as the start of a tag or entity — for example, showing a code snippet or a "5 < 10" comparison in body text.
Is my text uploaded anywhere?
No — HTML Entity Encoder runs entirely in your browser using JavaScript/WebAssembly. Your text is never sent to a server.
Does this encode every character, or just the reserved HTML ones?
Just the reserved ones — &, <, >, \", and ' — that can be misinterpreted as markup. Ordinary letters, numbers, and punctuation like commas or periods are left as plain text.