HTML Entity Encoder
Enter text to see conversion
HTML entities are special character sequences that begin with an ampersand (&) and end with a semicolon (;). They serve two critical purposes: displaying reserved HTML characters as literal text rather than code, and representing characters that aren't easily typed on standard keyboards.
Without HTML entities, browsers would interpret characters like < and > as HTML tag delimiters. For example, typing "<script>" directly in HTML would create an actual script tag. By encoding it as "<script>", the browser displays the literal text instead.
Common examples include:
<for < (less than)>for > (greater than)&for & (ampersand)"for " (quotation mark)'for ' (apostrophe)©for © (copyright) for non-breaking space