Text ToolsFree
HTML Entity Encoder
Encode special HTML characters (&, <, >, ", ') into their HTML entity equivalents, or decode entities back to characters. Essential for safe HTML output.
Frequently Asked Questions
Why encode HTML entities?▼
To safely display user input in HTML without it being interpreted as code, preventing XSS attacks.
What characters are encoded?▼
&, <, >, ", and ' are the core HTML entities. All others are passed through unchanged.