HTML Encode
Your text is used only to create the result and is not saved.
What does HTML Encode do?
HTML Encode converts special characters such as <, >, & and quotes into HTML entities, so they are displayed as text on a web page instead of being read as code.
How to use HTML Encode
- Paste or type your code into the box. The Paste button inserts what you copied, and Sample loads an example.
- Press Encode.
- Check the result and press Copy to use it. Reset clears everything.
When is it useful?
- Show code examples on a web page
- Safely insert user text into HTML
- Prepare text for an HTML attribute
Example
<b> becomes <b>.
Good to know
- Your text is only used to create the result and is not saved.
Frequently asked questions
Is HTML Encode free?
Yes. You can use it as often as you like without creating an account.
Is my code saved?
No. It is sent to our server only to create the result and is not stored. Like every tool on the site we keep a basic usage record (tool name, time, IP address and country); see our Privacy Policy.
Does it work on my phone?
Yes. It runs in any modern browser on a phone, tablet or computer - there is nothing to install.