HTML Entity Encoder / Decoder
Convert special characters to HTML entities and back, so your markup displays correctly. UTF-8 safe and runs locally.
Browser preview (rendered in a sandboxed frame — scripts cannot run)
Common entities reference — click to insert
Minify escaped HTML? Use the HTML minifier · inspect tokens: JWT decoder · JSON strings: JSON formatter.
Escape HTML safely
Encode user input before inserting into templates, or decode entities back to characters — with a live preview of how it renders.
FAQ
What does encoding do?
It converts characters like <, >, & and quotes into HTML entities so they display as text instead of being parsed as markup — essential for showing code snippets safely.
What is the preview for?
It shows how your encoded string renders in a browser vs the raw decoded HTML — so you can spot XSS fixes before paste.
Is it safe and private?
Yes — everything runs locally in your browser; nothing is uploaded.
Last updated: