HTML Encoder / Decoder
Convert special characters to safe HTML entities, or decode them back.
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
Editor's pickEncode text for safe use in a URL, or decode a URL-encoded string.
Base64 Encoder / Decoder
Editor's pickEncode text to Base64, or decode Base64 back to plain text.
Color Converter
Related toolConvert between HEX and RGB color formats.
CSS clamp() Calculator
Related toolGenerate a fluid CSS clamp() value that scales between a minimum and maximum size across viewport widths.
curl Command Generator
Related toolBuild a curl command from a method, URL, headers and body.
Fake Data Generator
Related toolGenerate rows of realistic synthetic test data (names, emails, dates, numbers…) as JSON, CSV, XML, Python, SQL or YAML.