HTML Entity Encoder
Encode special characters (&, <, >, ", ') as HTML entities, or decode entities back to readable text.
Runs locally in your browser
Plain Text
HTML Entity Encoder
Common HTML Entities
& becomes & · < becomes < · > becomes > · " becomes " · ' becomes apostrophe.
Encode entities when showing literal HTML inside a page, documentation, examples, or code snippets. Decode entities when copied text contains escaped characters that you want to read normally.
When should I encode HTML?
Encode text before inserting it into HTML source when you want characters such as < and & to display literally.