HTML entity encoder and decoder
Escape text for safe use in HTML, or turn entities like & and é back into readable characters.
Runs in your browserNothing uploadedWorks offline
Loading HTML entity encoder and decoderRuns on this device. Nothing is uploaded.
Questions
Which characters are encoded?
Always the five that matter in HTML: & < > " and the apostrophe. Turn on non-ASCII encoding to also write accented letters, symbols and emoji as entities, named where a name exists or as numbers.
Which named entities can it decode?
All 253 names from HTML 4 (such as é, — and €) plus every numeric reference. Any other name is left as it is and listed so you can check it.
Does it run my HTML?
No. The text is treated as plain characters and never rendered or executed.
Related tools
All developer toolsDeveloperBase64 encode and decodeEncode text or any file to Base64 and decode Base64 back to text or the original file, with a URL-safe option.DeveloperBinary to decimalConvert binary numbers of any length to decimal, with hex and octal shown too, exactly and as you type.Developerapplication image videoChecksum verifierDrop a file and paste the published checksum to see if it matches. MD5, SHA-1, SHA-256, SHA-384, SHA-512 and CRC32 are detected for you.DeveloperChmod calculatorTick read, write and execute boxes or type 755 or rwxr-xr-x, and get the matching octal, symbolic and chmod command, explained.DeveloperCIDR and subnet calculatorType an IP with a prefix or mask to get the network, broadcast, host range, host count, netmask and wildcard. IPv6 works too.Developerjs mjs cjsCode formatterFormat HTML, CSS, JavaScript, TypeScript, JSON, Markdown and YAML with Prettier, right in your browser, with indent and quote options.