HTML Entities

Encode and decode HTML entities in your browser.

Type in either textarea and click the button to convert in that direction.

Your files never leave your device
How it works

Three steps to done

1Drop your file

Drag and drop or click to browse

2Processed locally

Runs in your browser, nothing uploaded

3Download result

Get your file instantly

Use cases

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

More tools

Related tools

All tools

3 free uses left today

Unlimited with Pro

Go Pro — $4.99/mo