Developer tools
HTML Entity Encoder and Decoder
Free, no sign-up, works in your browser. Encode text into HTML entities so it shows safely on a web page, or decode entities like &, é and é back into readable text.
Enough to show code or user text safely inside a web page or an attribute.
Encoding happens on your device. Nothing you paste is sent anywhere.
How to use the HTML Entity Encoder and Decoder
- Choose Encode or Decode.
- Paste your text or HTML.
- Copy the result.
Frequently asked questions
- What are HTML entities?
- Codes that stand for characters, such as < for < and & for &. Browsers show the character instead of treating it as part of the page's code.
- Which characters must be encoded?
- In page text and attributes, & < > " and ' are enough. Encoding accents and symbols as well helps when a page might not be saved as UTF-8.
- Named or numbered entities?
- Both work in every browser. Names like é are easier to read; numbers like é exist for every character, including emoji.
- Is my text uploaded?
- No. Encoding happens on your device.
- Is the HTML Entity Encoder and Decoder free?
- Yes. It's free to use, with no sign-up and nothing to install.
Related tools
- URL Encode / DecodeEncode text for a URL or decode %20-style percent-encoding back to readable text, as you type. Paste a full link to see its query parameters listed and decoded. Nothing leaves your device.
- String Escape and UnescapeEscape text so it fits safely inside a JSON, JavaScript, CSV, SQL, regular expression or XML string, or turn escaped text like \n and \" back into plain text.
- Markdown to HTMLType or paste Markdown and get clean HTML instantly, with a live preview. Tables, task lists, code blocks and links are supported. Copy the HTML or download it as a file; your text stays on your device.
- Base64 Decode and EncodeDecode Base64 to readable text or encode text to Base64 as you type, with full support for accents and emoji (UTF-8) and the URL-safe variant. You can also turn a file into Base64 or save decoded Base64 as a file. Everything stays on your device.