HTML Entity Encoder / Decoder Online

Encode HTML special characters to entities and decode HTML entities back to characters. Free online HTML encoder decoder. Escape < > & for safe HTML output.

Encode Entities Decode Entities Escape HTML Safe Output Free
Input HTML or text
Output
Quick reference
What it is
  • Converts characters like < > & into their HTML entity equivalents so they display as text instead of being interpreted as HTML tags.
How to use it
  • Paste your HTML or text in the input
  • Click Encode to convert special characters to entities
  • Click Decode to convert entities back to characters
  • Click Copy to use the output
When you need this
  • Displaying user input safely inside HTML
  • Showing code snippets on a page without them rendering
  • Converting HTML content to store in a database
  • Fixing display issues with special characters on a webpage
Good to know
  • & must be encoded first before encoding < and > or you double-encode
  • The 5 critical characters are & < > " and single quote
  • HTML encoding prevents XSS attacks when displaying user content
  • This is different from URL encoding — use the right one for your context
What else we build
Tamil Brothers is an indie studio building games, Discord bots, and digital tools. All free.
Explore Our Creations
Other free tools
URL Encoder Base64 JSON Formatter Markdown Previewer CSS Minifier JS Minifier