HTML Encoder & Decoder
Convert HTML special characters to entities and back.
Result...What is HTML encoding?
In HTML, certain characters have special meaning. For example, < starts a tag and & starts an entity. To display these characters as literal text, they must be encoded as entities like < and &.
Common HTML entities
&→&<→<>→>"→"'→'
Privacy
Everything runs in your browser. Nothing is uploaded.
Frequently Asked Questions
What is HTML encoding?
HTML encoding converts characters that have special meaning in HTML (&, <, >, ", ') into HTML entities so they display as text instead of being interpreted as tags.
Why encode HTML?
To safely display user-provided content, prevent XSS attacks, and show code examples on web pages without the browser interpreting them as markup.
Is this free?
Yes, completely free.
Is my data uploaded?
No, everything runs in your browser.
Does it support all HTML entities?
The encoder handles the 5 essential characters (&, <, >, ", '). The decoder handles all named and numeric HTML entities.