HTML Entity Encoder & Decoder
Encode and decode HTML entities.
How HTML entity encoding works
Paste your text or markup
Add plain text to encode, or HTML containing entities like & to decode.
Encode or decode
Encode converts special characters such as <, > and & into their HTML entity equivalents. Decode reverses the process.
Copy the result
Copy the converted text for safe use inside HTML markup or for display as plain text.
Frequently asked questions
Why do I need to encode HTML entities?
Characters like <, > and & have special meaning in HTML, so encoding them prevents markup from being misinterpreted or broken when displayed.
Does this handle all HTML entities?
It covers the standard characters that need escaping for safe HTML display using the browser's own built-in encoding and decoding behavior.
Is my text sent anywhere?
No. Encoding and decoding happen locally in your browser.