Skip to content
Home / Free Tools / HTML Entity Encoder / Decoder
Runs in your browser · No API

Inputs stay on this page. Changing inputs clears the previous result.

What this tool does

Escape common HTML characters or decode supported entities. Use it to prepare an HTML example for display or inspect a numeric character reference.

How to use it

  • Enter the values in the labelled fields above.
  • Choose the mode or units before running the tool.
  • Select Run tool to calculate or transform the input.
  • Review the result, then use Copy result if you want to keep it.

A worked example

The source “<p>Hello</p>” becomes “&lt;p&gt;Hello&lt;/p&gt;”. Decoding “&#8377;100” returns the rupee symbol followed by 100.

How the result is produced

Encoding replaces &, <, >, double quotes and apostrophes with entities. Decoding supports amp, lt, gt, quot, apos, decimal numeric references and hexadecimal numeric references. The result is always placed in a plain text field.

Limitations to keep in mind

Only the listed named entities are decoded; for example, &nbsp; remains unchanged. Decoding an HTML snippet does not make it safe to insert as live HTML elsewhere. Context-specific escaping is still needed in software.

Privacy and access

This tool runs in your browser without an AI request, an account or an external API. The tool code does not upload your inputs or save results in WordPress. Inputs remain on the current page until you reset or reload it. Copying a result places it on your device clipboard, which other software on your device may be able to access. Avoid using confidential material on a shared device.

Common questions

Does it cost anything?

No. This browser tool is free to use. It does not consume the Gemini chat quota. Very large inputs can make the browser slow; text tools accept up to 100,000 characters per run.

Can I edit the result?

Copy the result into your own editor to make changes. Changing an input clears the previous result so an older answer is not confused with the new values. Reset returns fields to their original defaults.

Will it work on mobile?

The controls adapt to a small screen. A current browser is recommended, especially for multilingual segmentation and cryptographic features. If clipboard access is unavailable, select the result and copy it manually.

Guides for this task