<!-- Markdown version of https://ocxly.com/html-entity.html · auto-generated, may lag the live page -->

# HTML Entity Encoder / Decoder

Convert characters to HTML entities and back — escape &, <, > and quotes for safe markup, or decode entities to readable text. Optionally encode every non-ASCII character. Runs in your browser.

### How it works

Encoding replaces the five characters that carry meaning in HTML — `&`, `<`, `>`, `"` and `'` — with named or numeric entities so text renders literally instead of being parsed as markup. Decoding turns entities back into characters; it reads literal tags as plain text (nothing is executed). Tick *encode all non-ASCII* to make emoji and accented letters safe for ASCII-only contexts.

---
*Source: [ocxly.com/html-entity.html](https://ocxly.com/html-entity.html) — OCXLY, free 100% client-side privacy-first tools. Free HTML entity encoder and decoder. Escape &, <, >, quotes and non-ASCII characters to entities, or decode entities back to text — entirely in your browser, no uploads.*
