Tools
Escape text so it displays literally in HTML, turning < into < and & into &, or decode named, decimal and hex entities back into characters. Choose named entities where they exist, or force numeric output for maximum compatibility.
Options
Direction
Entity style
Result
Frequently asked questions
- Which characters must be escaped in HTML?
- In text content, & and < always. Inside attribute values, also the quote character you used to wrap the value. Escaping > and both quote styles everywhere is harmless and the safe default.
- Named, decimal or hex: which should I use?
- They render identically. Named entities (©) are easiest to read. Numeric ones (© or ©) work for every character, including those without a name, and are what most templating engines emit.
quick question
Was this tool helpful?