HTML Entity Encoder & Decoder
Encode and decode HTML entities online. Escape <, >, &, and quotes for safe markup, or convert entities back to characters. Free and client-side.
// html entitiesencode○ ready
Raw
Encoded
About this HTML entity tool
When you want to display code or user-supplied text on a web page, characters like < and & must be escaped so the browser renders them literally instead of treating them as tags. This tool escapes text into safe HTML entities and decodes entities back into plain characters — both directions, in your browser.
How to use it
- Choose Encode to escape text or Decode to convert entities back.
- Paste your input on the left.
- Copy the result from the right.
Frequently asked questions
- What does HTML entity encoding do?
- It replaces characters that have special meaning in HTML — like <, >, &, and quotes — with safe entity equivalents (<, >, &, "). This prevents text from being interpreted as markup and helps avoid injection bugs.
- When should I encode non-ASCII characters?
- Enable “Non-ASCII” to convert accented letters, symbols, and emoji into numeric entities (&#nnn;). This is useful when a system or email client may not handle UTF-8 reliably.
- Does it handle named and numeric entities when decoding?
- Yes. Decoding understands common named entities (&, ©, —, …) as well as decimal (©) and hexadecimal (©) numeric references.
// More tools
- JSON FormatterBeautify, minify, and validate JSON with precise error locations.
- Base64 Encoder / DecoderEncode and decode Base64 for text and files, including URL-safe.
- UUID GeneratorGenerate v4 and time-ordered v7 UUIDs in bulk, ready to copy.
- Regex TesterTest regex with live highlighting, capture groups, and flags.
- YAML ValidatorValidate YAML and convert to and from JSON.
- Case ConverterConvert between camelCase, snake_case, kebab-case, and more.
- URL EncoderPercent-encode and decode URLs and query parameters.
- Number Base ConverterConvert between binary, octal, decimal, and hexadecimal.
- Color ConverterConvert colors between HEX, RGB, and HSL with a live preview.
- Unix Timestamp ConverterConvert Unix epoch timestamps to dates and back.
- JWT DecoderDecode a JWT's header and payload with readable claim times.
- Hash GeneratorGenerate MD5, SHA-1, SHA-256, and SHA-512 hashes from text.
- JSON ↔ CSV ConverterConvert JSON to CSV and CSV back to JSON.
- Cron Expression ExplainerTranslate a cron expression into plain English.