HTML Encoder / Decoder
Free online HTML entity encoder and decoder. Encode special characters as HTML entities for safe display, or decode entities back to readable text.
Text that ends up in a page's visible body, a comment, a chat message, user-submitted content, needs its angle brackets and ampersands escaped before display, or a literal script tag typed by a visitor doesn't just show up as text, it risks actually running as a script the browser interprets, which is a different and more security-relevant concern than the same characters showing up inside an HTML attribute value. This tool encodes special characters into HTML entities for safe display in a page's visible content, or decodes entities back into readable text, handling exactly the characters that matter for content rendered directly into the body of a page.
See moreSee less about the HTML Encoder / Decoder
Useful for safely displaying user-submitted text that might contain angle brackets or ampersands, showing a code sample's raw HTML tags as visible text instead of having the browser render them, or decoding entity-encoded text back into something readable.
Key features
- Clean interface
- Fast processing
- No signup required
- Works offline