HTML Entities
Escape HTML so it displays as text, or decode entities back into characters.
How HTML Entities works
Convert <, >, & and quotes into HTML entities, or decode an entity-laden string back to plain text. Everything happens inside this page: the tool reads your input, runs the calculation or conversion locally, and hands the result back to you. Nothing is transmitted, because there is no backend to transmit it to.
That design choice is deliberate. Most free tool sites upload your files to a server, process them there, and quietly keep a copy. Toolcin cannot do that — the site is a set of static files. If your connection dropped the moment the page finished loading, every tool would still work.
Why & exists
In HTML the ampersand starts an entity, the less-than sign starts a tag and the greater-than sign ends one. To display those characters literally you must encode them: & < >. Everything else — quotes, spaces, accented letters — has an entity too, though most are optional in UTF-8.
Encoding is therefore not cosmetic: an unescaped & in a URL can break the link, and an unescaped < can swallow the rest of the paragraph.
Named, decimal and hex
& is a named entity, & is decimal and & is hexadecimal — three ways to write the same character. Named entities are readable; numeric ones work for characters that have no name.
Decoding accepts all three forms, which is what makes it useful for cleaning text pasted out of a CMS.
| Character | Entity |
|---|---|
| & | & |
| < | < |
| > | > |
| " | " |
| non-breaking space | |
The classic double-encoding bug
Encoding text that is already encoded turns & into &amp;, which then displays literally. If a page shows “&” to the reader, something encoded twice — decode once and inspect.
Good to know
- Works offline once loaded, including on flights and in locked-down networks.
- No file size limit beyond your device's own memory.
- Free to use, with no account and no usage counter.
- Results are produced locally, so they are not logged or shared with anyone.
Questions
Why escape HTML?
Unescaped angle brackets are parsed as tags, which breaks layouts and enables injection.
Does decoding handle named entities like ?
Yes — the browser's own parser resolves named and numeric entities.
Should I encode accented letters?
Not in a UTF-8 page; the character is fine literally.
Does it handle emoji?
Yes, via numeric entities.
Keep going
More encoding tools
Base Converter
Convert a number between bases 2, 8, 10, 16 and 36, with validation for invalid digits.
Open toolRoman Numerals
Translate between numbers and Roman numerals, including subtractive forms like IV and CM.
Open toolBase32 Encoder
Encode text to Base32 or decode Base32 back to text using the standard alphabet.
Open toolBase64 Encoder
Encode or decode Base64 text and files instantly. Unicode safe, no upload, no server involved.
Open toolMorse Code Translator
Translate text into Morse code and decode dots and dashes back into text, including numbers and punctuation.
Open toolBinary Translator
Translate text into 8-bit binary and decode binary strings back into readable text.
Open tool