HTML Entity Encode / Decode

HTML Entity Encode / Decode

Convert special characters to HTML entities and back.

0 chars
0 chars

About the HTML Entity Encode / Decode

Convert special characters to HTML entities and back. Encode &, <, >, quotes, and more for safe HTML output.

The HTML Entity Encode / Decoderuns entirely in your browser — your data is never uploaded to a server, so it stays private and works instantly, even offline. It's completely free, requires no sign-up, and works on desktop and mobile.

Frequently Asked Questions

What are HTML entities?
HTML entities are special codes (like &amp; for &, &lt; for <) that represent reserved characters in HTML. They prevent the browser from interpreting characters as markup.
When should I use HTML entity encoding?
Use HTML entity encoding when displaying user-generated content in HTML to prevent XSS attacks, or when you need to display characters that have special meaning in HTML like <, >, &, and quotes.

Related tools