ToolsPocket
Home
ToolsPocket

Free online tools that process files 100% in your browser. Your privacy is our priority.

Links

Privacy PolicyContact

Popular Tools

Image CompressorJSON FormatterPassword GeneratorQR Generator

Language

EnglishEspañol

© 2026 CrabLabs. All rights reserved.

Made with privacy in mind

HTML Encoder/Decoder

HTML Encoder/Decoder

Encode special characters into HTML entities or decode HTML entities back to their original characters. Prevents XSS by safely encoding user-generated content for display in HTML.

100% Client-Side
Ad Space

FAQ

What are HTML entities?

HTML entities are special codes that represent characters which have special meaning in HTML. For example, '<' becomes '&lt;', '>' becomes '&gt;', and '&' becomes '&amp;'.

Why encode HTML?

Encoding prevents browsers from interpreting special characters as HTML markup. This is essential for displaying user-generated content safely and preventing Cross-Site Scripting (XSS) attacks.

What characters get encoded?

The essential characters are: & (&amp;), < (&lt;), > (&gt;), " (&quot;), and ' (&#39;). Extended encoding also covers non-ASCII characters.

Does it handle named entities?

Yes. The decoder handles both named entities (like &amp;, &lt;, &nbsp;) and numeric entities (like &#60;, &#x3C;).

Related Tools

developer

JSON Formatter

Format, validate, and minify JSON data

developer

Image to Base64

Convert images to Base64-encoded strings

developer

Base64 Encode/Decode

Encode text to Base64 or decode Base64 to text

Ad Space