Convert special characters to HTML entities for safe embedding in web pages — or decode entities back into readable text. Supports named, decimal and hex formats.
Type or paste text — it is encoded as you type.
Click any entity to copy it.
Characters like <, >, & and " have special meaning in HTML. Writing them as entities (<, >, &, ") stops them from breaking your layout and is the first line of defence against cross-site scripting (XSS) when you display user-supplied text.
HTML entities are text codes that stand for characters. They start with & and end with ; — for example < for <, & for & and © for ©. They come in three forms: named (é), decimal (é) and hexadecimal (é). All three display the same character.
<, > and & so the browser shows your code instead of running it.& < > " ' is the standard defence against XSS in HTML text and attribute values. keeps words together and stops spaces collapsing.Four characters matter in HTML text: & → &, < → <, > → >. Inside quoted attribute values you must also encode the quote you used: " → " or ' → '. This tool encodes all five by default.
They are three spellings of the same character. Named entities (©) are easiest to read but only exist for about 2,000 characters. Decimal (©) and hex (©) work for every Unicode character, including emoji. If a character has no name, this tool falls back to the decimal or hex number.
Not for most symbols — UTF-8 can store © € ₹ and even emoji directly. You still need entities for < > & and quotes inside attributes, and for characters like the non-breaking space that are invisible or easy to confuse.
Yes. Text is processed by Unicode code point, so emoji and characters outside the basic range stay intact. With “Encode all non-ASCII” on, 😀 becomes 😀 (or 😀 in hex), and Hindi, Tamil, Chinese and Arabic text is converted character by character.
HTML ignores ordinary line breaks. This option replaces each line break with <br> (and keeps a real line break after it) so the text keeps its lines when pasted into a web page.
Yes. Conversion happens entirely in your browser; nothing is uploaded or stored.
No. Decoding uses a harmless text container, so tags in your input are never executed or rendered — only the entities are converted.