Encoding & Decoding

HTML Entity Encoder and Decoder

Convert HTML special characters to entities or restore entities to text. Useful for template debugging, rich-text cleanup, and escaping. Processing stays in the browser.

HTMLEntitiesEncoding

Favorite this tool

No favorite storage mode has been selected.

Quick actions

Copy this tool URL or open the system share sheet on a supported device.

Use cases

  • Escape template fragments for safe HTML display
  • Restore entity characters from page source
  • Debug escaped characters such as < and & in rich text

How to use

  1. Enter text with special characters or entities
  2. Choose encode or decode
  3. Copy the result

Example input and output

Input

<div>Hello & welcome</div>

Entities

&lt;div&gt;Hello &amp; welcome&lt;/div&gt;

FAQ

Which characters are handled?

Encoding escapes common special characters such as <, >, &, and ". Decoding uses built-in browser handling for common entities in everyday text.

Is it suitable for a full HTML page?

It is meant for fragments and string-level work. For whole-page structure conversion, use HTML/Markdown tools instead of treating this as a full HTML parser.

Tools

Related tools

Continue with another translated tool for a nearby task.

Unicode Converter

Unicode Escape Converter

Available

Convert between plain text and Unicode escape sequences (\uXXXX). Useful for inspecting API payloads, config files, and frontend strings. Conversion stays in the browser.

Unicode Escape Encoding

Base64 Encode/Decode

Base64 Encoder and Decoder

Available

Encode and decode Base64 in the browser, with standard and URL-safe variants, automatic direction detection, and optional file-to-Base64 conversion. Useful for API debugging and local data prep.

Base64 Encoding Developer

UTF-8 Byte Viewer

UTF-8 Bytes and Code Point Viewer

Available

Inspect each character’s UTF-8 bytes, hex form, and code points. Useful for debugging emoji, multi-byte CJK, and length-limit issues. Analysis runs locally in the browser.

UTF-8 Bytes Unicode