$ encode --html-entity
html entity encoder / decoder.
Encode or decode HTML special characters like < > & ". 100% client-side.
input
1
2
3
4
5
2
3
4
5
0 / ∞ chars
output
HTML entities are special codes that represent reserved characters in HTML. For example, < represents <, > represents >, and & 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 & for &. Numeric entities use decimal or hex codes like & or &. Both render the same character.
learn more in our detailed guide.
→ read the guide