HTML Entity Encoder / Decoder
Convert characters like <, >, & and quotes into safe HTML entities, or decode common named and numeric HTML entities back to plain text.
Frequently asked questions
Why encode HTML entities?+
To safely display characters like < or & as literal text in HTML without the browser interpreting them as markup.
Which entities can it decode?+
All numeric character references (' and '), plus a broad set of common named entities like &, ©, —, and …. Very obscure named entities may not be recognized.
Is this the same as URL encoding?+
No, HTML entity encoding is for safely embedding characters inside HTML markup; URL encoding (percent-encoding) is for safely embedding characters inside a URL. Use the URL Encoder/Decoder tool for the latter.