HTML Entities
Encode and decode HTML entities in your browser.
Type in either textarea and click the button to convert in that direction.
Three steps to done
Drag and drop or click to browse
Runs in your browser, nothing uploaded
Get your file instantly
When to use this
Sanitize user input
Encode HTML before inserting user content into a page to prevent XSS.
Read HTML source
Decode entities in copied HTML to see the actual characters.
Template debugging
Check that your template engine is escaping output correctly.
Free HTML entity encoder and decoder
Paste HTML into the left textarea and click Decode to convert entities like & and < back to their original characters. Paste plain text in the right textarea and click Encode to escape it for safe insertion into HTML.
The encoder handles the five reserved HTML characters that must always be escaped: ampersand, less-than, greater-than, double quote, and single quote. The decoder handles all named HTML5 entities as well as decimal and hexadecimal numeric references.
Everything runs locally in your browser. Sensitive content you paste is never transmitted anywhere.
Frequently Asked Questions
Related tools
All toolsCompress Image
Reduce image file size without losing quality. Supports PNG, JPG, and WEBP.
HEIC to JPG
Convert iPhone HEIC photos to JPG format instantly in your browser.
Resize Image
Resize images to exact dimensions with presets for Instagram, LinkedIn, YouTube, and more.
JPG to PNG
Convert JPG images to PNG format with transparency support.
3 free uses left today
Unlimited with Pro