HTML Entity Encoder / Decoder
Escape text so it displays safely in HTML — or turn entities back into readable characters.
HTML Entity Encoder / Decoder
🔒 Nothing you enter is sent anywhere or stored. All processing happens in your browser.
How it works
HTML has a handful of characters with special meaning — <, >, &, and quotes. To display them as literal text (rather than have the browser treat them as markup) you replace them with entities. Doing this reliably is essential for showing code samples, preventing broken layouts, and avoiding injection bugs.
Encode escapes those special characters, and optionally every non-ASCII character (accents, symbols, emoji) into numeric entities for maximum compatibility. Decode reverses the process, turning both named entities (like ©) and numeric ones (©) back into the characters they represent.
All conversion runs locally in your browser, so you can safely process snippets containing private content.