HTML Encoder / Decoder
Convert special characters to safe HTML entities, or decode them back.
Result will appear here...
Processing happens locally in your browser. Nothing you enter is uploaded.
How It Works
Type or paste your text, choose Encode or Decode, and copy the result.
Example
<div> encodes to <div>.
Frequently Asked Questions
- Why encode HTML characters?
- Characters like < and > have special meaning in HTML — encoding them prevents browsers from interpreting user text as markup, which also helps prevent XSS attacks when displaying untrusted content.
Related Tools
URL Encoder / Decoder
Encode text for safe use in a URL, or decode a URL-encoded string.
Base64 Encoder / Decoder
Encode text to Base64, or decode Base64 back to plain text.
Color Converter
Convert between HEX and RGB color formats.
Hash Generator
Generate a SHA-1, SHA-256, or SHA-512 hash of any text.
JSON Formatter
Format, validate, and beautify JSON with proper indentation.
Regex Tester
Test a regular expression against sample text and see all matches.