HTML Entity Encoder

Encode and decode HTML entities like & < > and more. Free online tool with named and numeric entity support. No signup.

Preparing private browser tool…

Your file will stay on this device.

Frequently asked questions

What are HTML entities?
HTML entities are special character codes that represent reserved characters like <, >, &, and quotes. They let you display these characters as text rather than having the browser interpret them as HTML syntax.
When should I encode HTML entities?
Encode entities whenever you insert user-provided or untrusted text into HTML to prevent XSS attacks, or when you want to display HTML source code as literal text on a page.
Is this tool safe for sensitive data?
Yes. All encoding and decoding runs entirely in your browser. No text is sent to any server, so your input stays private.