Everyday Tools
Search

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 &lt;div&gt;.

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

Related Guides