$ encode --html-entity

html entity encoder / decoder.

Encode or decode HTML special characters like < > & ". 100% client-side.

input
1
2
3
4
5
0 / ∞ chars
output
HTML entities are special codes that represent reserved characters in HTML. For example, &lt; represents <, &gt; represents >, and &amp; represents &.
Encoding HTML entities prevents browser interpretation. It is essential for displaying code on web pages, preventing XSS attacks, and safely handling user-generated content.
Named entities use memorable names like &amp; for &. Numeric entities use decimal or hex codes like &#38; or &#x26;. Both render the same character.

learn more in our detailed guide.

→ read the guide