HTML Entity Encoder / Decoder
Paste HTML or text and it is escaped or unescaped as you type.
Your text and files never leave your browser — nothing is sent to a server.
How to use
- Paste your text and choose Encode or Decode.
- Keep “Only & < > " '” to make text safe to drop into an HTML page or attribute without breaking the markup.
- Choose “all non-ASCII characters” if the page or email might not be served as UTF-8 — accents, symbols and emoji become plain ASCII entities.
- Pick named entities (é) for readability, or decimal / hex numeric references for maximum compatibility.
- Decoding understands numeric references and the full HTML 4 named set (about 250 names, plus ').
FAQ
Which characters must be escaped in HTML?
In text, & and < must always be escaped. Inside attribute values, also escape the quote character that wraps the value. Escaping > as well is a common, harmless habit.
Named or numeric entities — which should I use?
Named entities such as © are easier to read, but only a fixed list exists. Numeric references like © or © work for every Unicode character.
Does escaping protect against XSS?
Escaping user text before inserting it into HTML is an important part of preventing cross-site scripting, but JavaScript, URLs and CSS contexts need their own escaping rules.
Related tools
All tools
Unit Converters
- Unit Converter
- Temperature Converter
- Weight Converter
- Area Converter
- Length Converter
- Angle Converter
- Calorie Converter
- Data Size Converter
- Dry Volume Converter
- Electric Charge Converter
- Energy Converter
- Flow Rate Converter
- Force Converter
- Fuel Economy Converter
- Luminous Intensity Converter
- Magnetomotive Force Converter
- Power Converter
- Pressure Converter
- Radiation Dose Converter
- Speed Converter
- Time Unit Converter
- Volume Converter