code
lock Free · Private · In-Browser
HTML Entity Encoder & Decoder
Convert HTML-sensitive characters into safe entities, or decode existing entities back into readable text.
Escape snippets before placing them in HTML
HTML entities prevent text from being interpreted as markup. They are useful for code examples, template output, documentation, and CMS fields that render HTML.
This tool keeps the common encode/decode workflow fast and local, with copy-ready output.
Frequently Asked Questions
What characters get encoded?
The tool escapes &, <, >, double quotes, and single quotes, the characters most likely to break HTML.
Can this decode named entities?
Yes. Decoding uses the browser parser, so common named and numeric entities are handled.
Is this safe for confidential snippets?
Yes. The conversion runs locally in your browser.
Take it further
Developer Tools
More lightweight utilities for developers, designers, and technical teams.