Showing HTML code on a page
<a href="/home">Home</a><a href="/home">Home</a>Show code and special characters safely on a web page, or turn text full of < and ' back into something readable. The encoder escapes the characters that HTML treats as markup; the decoder understands every named, decimal and hexadecimal entity.
<a href="/home">Home</a><a href="/home">Home</a>Fish & chips — €5Fish & chips — €5Browsers treat < and & as the start of tags and entities. Inserting user-provided text into HTML without escaping can break the layout — or allow cross-site scripting (XSS), where injected markup runs in other people’s browsers. Escaping &, <, >, " and ' turns them into harmless text. In application code, prefer your framework’s built-in escaping, which does this automatically.
No. Encoding and decoding happen in your browser. Decoding uses an inert document that never runs scripts or loads anything.
By default the five HTML-special characters: & < > " and '. With the option ticked, every character outside basic ASCII is also written as a numeric entity such as é.
No. Tags in the input are kept as plain text in the result; only entities are converted.
They are the same character (é) written as a decimal reference, a hexadecimal reference and a named entity. The decoder accepts all three.
Everything you need. One simple place.
Free, fast online tools for text, PDFs, images, data and everyday maths. Every tool runs entirely in your browser, so your files stay on your device.
© 2026 Toolora. All rights reserved.
Built for speed and privacy