HTML Entity Encode / Decode
Escape or unescape HTML special characters.
Encoded
<div class="x">Hi & bye</div>
Convert characters like < > & to HTML entities and back.
What is an HTML Entity Encoder / Decoder?
An HTML entity encoder/decoder converts reserved characters — `<`, `>`, `&`, `"` and `'` — into safe HTML entities and back. Fontily's handles both directions instantly in your browser, so you can safely display code or user input on a web page.
Features
- Two-way encode and decode.
- Handles all five reserved characters.
- Instant output as you type.
- Private and free — runs locally.
How to Use the Tool
- Choose Encode or Decode.
- Paste your text or entities.
- The converted output appears instantly.
- Copy the result into your HTML.
Benefits
Reserved characters break pages or open security holes when output raw. Encoding entities lets you display code samples and user content safely, while decoding helps you read entity-heavy source — both essential for web developers.
Use Cases
- Displaying code snippets on a page.
- Escaping user input to prevent XSS.
- Reading entity-encoded source.
- Preparing content for HTML.
Conclusion
Fontily's HTML Entity Encoder / Decoder safely escapes and unescapes HTML characters in an instant, privately. Paste your input above and copy the result — free and reliable.
Frequently asked questions
HTML entities are codes like < and & that represent reserved characters (< > & " ') so they display as text instead of being interpreted as HTML.