HTML Encoder / Decoder
Encoding reference
& → &< → <> → >" → "' → '
How to Use HTML Encoder / Decoder
1
Enter HTML or Text
Paste HTML markup or plain text containing characters that need escaping.
2
Configure Options
Toggle encoding of quotes and non-ASCII characters, and preserve existing entities when decoding.
3
Copy the Result
Copy the encoded or decoded output with one click.
Key Features
Full Entity Encoding
Escapes &, <, >, ", and ' into their standard HTML entities.
Optional Full Character Encoding
Encode every non-ASCII character for maximum compatibility and obfuscation.
Accurate Decoding
Converts named and numeric entities back into plain text with an option to preserve existing entities.
One-Click Copy
Copy the encoded or decoded output instantly to your clipboard.
100% Client-Side
All transformations happen locally in your browser.
Frequently Asked Questions about HTML Encoder / Decoder
Encoding user input prevents XSS attacks and lets you display code or markup as plain text on a page.