HTML Entity Encoder
Encode and decode HTML entities: basic escapes, extended non-ASCII, named entities, and numeric &#…; codes. Live preview with common entity shortcuts.
How it works
Choose direction and mode
Encode turns special characters into entities; Decode reverses them. Basic escapes <, >, &, quotes. Extended adds numeric codes for non-ASCII. All encodes every character.
Paste or insert entities
Type or paste HTML or plain text. Click common entity buttons to insert <, ©, , and others at the cursor.
Copy or download
Live mode updates the output as you type. Turn it off to convert on button click. Swap moves the result back to input and flips direction.
What are HTML entities?
HTML entities represent characters that would otherwise be interpreted as markup or are hard to type. < displays as < without starting a tag; © shows ©. Developers encode untrusted text and decode legacy content that stores entities instead of raw Unicode.
Why use this tool
- Encode and decode HTML entities
- Basic, extended, and all-numeric encode modes
- Decode decimal, hex, and named entities
- Common entity insert buttons
- Live mode with swap and sample
- Unlimited use — no daily cap
Questions
What does HTML Entity Encoder do?
It converts special characters to HTML entities (encode) or reverses entity strings back to characters (decode).
What is the difference between encode modes?
Basic escapes the five HTML-significant characters. Extended also encodes non-ASCII letters as &#decimal;. All encodes every character numerically or by name.
What entities can decode handle?
Named entities like © and , decimal ©, and hex © forms.
When should I encode HTML?
When displaying user input as text inside HTML, or when embedding special characters in attributes. Prevents the browser from interpreting markup.
Is my text sent to a server?
No. Conversion runs entirely in this tab.
Is there a daily limit?
No. This tool has no daily cap.
If Easy24 helped, buy a coffee
Tools stay free in your browser. One-time thanks via Kreosus. Turkish cards work.
Similar Developer tools
See allJSON Formatter
Developer
Pretty-print, minify, validate, and sort JSON keys in the browser. Choose 2- or 4-space indent, import a file, download the result.
OpenMeta Tag Generator
Developer
Build SEO title, description, Open Graph, Twitter Card, and canonical tags with a live social preview. Runs in the browser.
OpenCSS Gradient Generator
Developer
Design linear and radial CSS gradients with up to three color stops. Live preview, presets, hex input, copy or download.
Open