HTML Entity Encoder & Decoder
Convert special characters to HTML entities, and back, in one click.
Encoding turns < > & " ' into safe entities, essential when displaying code in HTML.
About this tool
Encodes the five HTML-significant characters (& < > " ') into
entities, optionally every non-ASCII character too, for systems that only accept ASCII, or decodes
any entities, named (©), decimal (©) or hexadecimal
(©), back to characters.
Encoding is essential when embedding code samples in web pages; decoding cleans up entity-heavy text scraped from HTML sources.
How to use
- 1. Paste text or HTML.
- 2. Click Encode or Decode.
- 3. Copy the result.
Frequently asked questions
Which characters get encoded?
& < > " and ', the five characters that are significant in HTML. Tick the option to also encode every non-ASCII character as a numeric entity.
Which entities can it decode?
All of them: named (©), decimal (©) and hexadecimal (©) entities.
Is it free?
Yes, unlimited, no signup.
Is your website secure? Run the free 7-section scan: vulnerabilities, malware, headers, SEO and speed.
Scan my websiteRelated tools
More from Encoders & Hashes and Developer.