HTML Encoder
Escapes &, <, >, ", and ' to their HTML entity equivalents. Runs entirely in your browser — nothing is sent to a server.
Escapes &, <, >, ", and ' to their HTML entity equivalents. Runs entirely in your browser — nothing is sent to a server.
Use cases
- Safely displaying user-submitted text inside HTML
- Preparing a code snippet to be shown inside a <pre> block
Examples
A tag with an attribute and an apostrophe
<div class="a">Tom & Jerry's</div>
<div class="a">Tom & Jerry's</div>
FAQ
Is my data sent to a server?
No — this tool runs entirely in your browser.