</>

HTML Encode / Decode

Encode & decode HTML entities

πŸ”’ 100% client-side β€” your data never leaves this page
Input
Encoded
Encoded output
Previewlive render

About this tool

Convert special HTML characters such as angle brackets, ampersands and quotes into their HTML entity equivalents for safe display in web pages, or decode HTML entities back to readable characters.

Frequently Asked Questions

Why do I need to encode HTML?

If you display user-submitted text directly in HTML, characters like < and > will be interpreted as tags, breaking your layout or creating XSS security vulnerabilities. Encoding converts them to safe entities.

What are the most common HTML entities?

The most important are: &amp; for &, &lt; for <, &gt; for >, &quot; for double quotes, and &#39; for single quotes.