Home โบ Developer Tools โบ HTML Entity Encoder / Decoder
๐ท๏ธ HTML Entity Encoder / Decoder
Encode special characters into HTML entities, or decode entities back to plain text.
About this HTML Entity Encoder / Decoder
HTML reserves characters like <, > and & โ if you want them to appear as visible text on a web page you must write them as entities such as < and &. This tool encodes those characters (plus quotes and non-ASCII characters as numeric entities) and decodes entities back to normal text, which is essential when editing templates, writing documentation or showing code samples on a page.
How to use it
- Paste the text or HTML you want to convert.
- Click Encode to turn special characters into entities.
- Or click Decode to turn entities back into readable characters.
- Copy the result from the box below.
Example
Encoding the text 'Fish & Chips <3' gives 'Fish & Chips <3', which a browser displays exactly as typed instead of treating < as a tag.
Frequently asked questions
Why encode non-ASCII characters too?
Numeric entities like © for ยฉ render safely even in files saved with old or mismatched character encodings.
Does decoding handle named entities like ©?
Yes โ decoding uses the browser's own HTML parser, so every standard named and numeric entity is understood.
More Developer Tools
Password Generator
Create strong random passwords in your browser with a live entropy strength meter.
QR Code Generator
Turn any text or link into a QR code you can save โ generated right in your browser.
Base64 Encoder & Decoder
Encode text to Base64 or decode Base64 back, with safe UTF-8 handling for any language.
JSON Formatter
Format, minify and validate JSON, with clear error positions and quick structure stats.
URL Encoder & Decoder
Encode or decode URLs and query text safely, with component or full-URL modes.
JSON to CSV Converter
Convert a JSON array of objects to CSV, or turn CSV back into clean JSON.