Loading Shrinkify...
Loading Shrinkify...
Encode special characters to HTML entities and decode them back. Useful for safe HTML content handling.
15 powerful converters: URL, Base64, JSON, HTML, Hash, JWT, Case, UUID, Timestamp, Hex, Binary, URL Params, Text Stats, Website Screenshot
HTML entity encoding prevents browser rendering issues and cross-site scripting risks when user-generated content appears in web pages. The HTML Encoder & Decoder converts special characters to their entity equivalents and back — right away.
For URL-safe encoding instead, use the URL Encoder.
Encode whenever displaying user-generated content in a web page to prevent XSS attacks and rendering issues.
At minimum: < > & and quotes (' "). Non-ASCII characters like accented letters and emoji should also be encoded for safety.
No. HTML encoding uses named or numeric entities (e.g., &). URL encoding uses percent-encoded hex values (e.g., %26).
Check out our technical guides to learn more about how browser-side processing works.
Read Glossary