HTML Entity Encoder
Encode and decode HTML entities and special characters, free in your browser. No sign-up — your data never leaves your device.
Safely Escape HTML Entities
HTML Entity Encoder / Decoder converts special characters like <, >, &, and quotes into their safe HTML entity equivalents (like < and &), preventing them from being misinterpreted as markup — an important step in preventing cross-site scripting (XSS) issues.
How to use
- Paste raw text or HTML into the input box.
- Click "Encode" to escape special characters, or "Decode" to convert entities back to raw characters.
- Copy the result for safe use in HTML output.
Common use cases
- Safely displaying user-submitted text inside an HTML page.
- Decoding entity-encoded text copied from a webpage’s source.
- Preparing code snippets to display correctly inside a <pre> block.
More Essential Power Tools
- ZIP Compressor — Compress multiple large files into a ZIP securely.
- Epoch Converter — Convert Unix timestamps to human dates.
- Text ⇌ ASCII — Convert letters into ASCII decimal numbers.
- Box Shadow Generator — Visually create beautiful CSS box shadows.
- JSON Minifier — Minify and compress JSON structures.
- String Generator — Generate secure random tokens and strings.