Processed locally — your file never leaves your device
HTML Encode
Encode text to HTML entities (&, <, >, ", ') entirely in your browser.
How it works
- Paste text, or open a file.
- Click Encode.
- Copy or download the HTML-encoded result.
Frequently asked questions
- Is my text sent anywhere?
- No. Encoding happens entirely on your device.
- Which characters are encoded?
- The 5 predefined HTML/XML entities: & → &, < → <, > → >, " → ", and ' → '.
- Why would I need this?
- To safely include arbitrary text inside HTML markup without it being misread as tags or attributes — for example, showing a code sample or user-submitted text on a web page.