MADE TO BE USEFUL. A growing collection of free tools for everyday work.
DEVELOPER TOOL / HTML ENTITIES

Free Online HTML Entity Encoder & Decoder

Encode special characters as HTML entities or decode entities back into readable text. Handles named entities like © and numeric ones like © in one step.

Everything runs in your browser, and decoding never executes any markup.

✓ Free to use · No signup required · Processed in your browser
HTML Entity Encoder & Decoder workspace
ADD TEXT · ENCODE OR DECODE · COPY
● READY TO USE
Add some text, then choose Encode or Decode.
HTML ENTITY WORKSPACEMOSANKIT / DEVELOPER TOOLS
THE BASICS

What Are HTML Entities?

HTML entities are codes that represent characters with special meaning in HTML, or that are hard to type. For example, < stands for the less-than sign and &copy; for the copyright symbol ©.

Encoding text before putting it in a web page stops characters like < and & from being read as markup. Decoding does the reverse, turning entities back into plain text.

BUILT FOR THE JOB

Key Features of MoSanKit HTML Entity Encoder & Decoder

<

Encode Special Characters

Safely escape &, <, >, quotes and apostrophes so text displays exactly as written.

©

Named Entities

Optionally use named entities for common symbols such as the copyright sign, accented letters and the euro sign.

#

Numeric Entities

Convert any non-ASCII character, including emoji, to a numeric entity.

⇄

Decode Everything

Decode named, decimal and hexadecimal entities back to text.

✓

Safe Decoding

Decoding never runs scripts or loads images from your input.

◎

Private by Design

Nothing is uploaded — all processing is local.

QUICK AND SIMPLE

How to Encode or Decode HTML Entities

01 / ADD

Add your text

Paste text or HTML into the input box.

02 / MODE

Choose a mode

For encoding, pick essential characters, named entities or numeric entities.

03 / RUN

Encode or decode

Click Encode or Decode to see the result.

04 / COPY

Copy the output

Copy it, or swap input and output to go back.

MADE FOR EVERYDAY WORK

Who Can Use This Tool?

Web DevelopersEscape text before inserting it into templates.
Content EditorsFix characters that appear garbled in a CMS.
Email DevelopersPrepare special characters for HTML emails.
Security LearnersSee how escaping prevents injection problems.
QA EngineersCheck how special characters are encoded.
StudentsLearn how HTML represents characters.
GOOD TO KNOW

A few things, answered.

Quick answers about using the MoSanKit HTML Entity Encoder & Decoder.

At minimum, & and < in text, and quotes inside attribute values. > is usually encoded too for consistency.

Named entities use a short name, such as amp for the ampersand. Numeric entities use the character code number. Both display the same, and numeric entities work for every character.

Escaping output is one important defence, but correct escaping depends on where the text is placed. Use your framework's built-in escaping where possible.

Yes. A non-breaking space decodes to the actual non-breaking space character.

Names it does not recognise are left exactly as they are.

No. Encoding and decoding happen entirely in your browser.

Say it in HTML,
exactly as you mean it.

Explore more free developer tools from MoSanKit.

Explore All Tools ↗