How to use HTML Entity Encoder & Decoder
- Choose Encode or Decode.
- Paste your text.
- Copy the result.
Supported features and limitations
Encoding covers & < > " and '. Optionally encode every non-ASCII character numerically. Decoding supports named and numeric entities known to your browser.
Privacy
Everything you type is processed locally in your browser and is not sent to our servers. No account is needed and there is no watermark.
Frequently asked questions
When should I encode entities?
When showing code or user text inside HTML so it is not interpreted as markup.
Does it prevent XSS?
Encoding output is one part of safe HTML handling, but this tool is not a complete security solution.
Related tools
- HTML to Text Converter - Strip HTML tags and extract readable plain text with sensible line breaks.
- URL Encoder / Decoder - Encode or decode URLs and query strings.
- Base64 Encoder & Decoder - Encode text to Base64 or decode Base64 back to text, with an optional URL-safe alphabet and full UTF-8 support.
- Text Case Converter - UPPERCASE, lowercase, Title Case and Sentence case.
- Word & Character Counter - Count words, characters, lines and reading time.
- Character Counter - Count characters with and without spaces, words, lines and UTF-8 bytes, and check text against limits like 280, 160 or 2,200.