# HTML Encoder / Decoder

> Convert special characters to HTML entities and back. Important for web development and security.

- Open in browser: https://pockettoolbox.org/en/html-encoder
- Runs entirely in your browser; files and input are never uploaded.

## How it works

This tool converts special characters into HTML entities to ensure correct display in web browsers.

Enter text with special characters (like <, >, &) to encode them safely for HTML code (e.g., &lt;). Conversely, you can decode HTML-entitfied code to restore the readable text. This is essential for preventing XSS and for clean markup.

Converts reserved HTML special characters into named entities using DOM escaping or regular expressions, reversing the process during decoding.

---
PocketToolbox (https://pockettoolbox.org/en)
