Skip to content

HTML Entity Encoder / Decoder

Escape special characters to HTML entities and back.

5.0 (1 rating)

Processing and privacy

Processing varies by tool. Check the instructions for local processing, server requests, external services and any file or request limits before entering sensitive information.

Read the privacy policy

Share this tool

Found it useful? Send it to a friend or teammate.

Rate this tool

5.0

1 rating

  • 5 stars 1
  • 4 stars 0
  • 3 stars 0
  • 2 stars 0
  • 1 star 0

Click a star to rate this tool

Clear instructions

Find steps, examples and limitations below.

Use online

Open the tool in a supported web browser.

Free to use

No sign-up required. Tool-specific limits may apply.

Reference resources

How to use the HTML Entity Encoder / Decoder

Escape text as HTML entities or decode entities into readable characters.

  1. 1 Choose Encode or Decode and paste the input.
  2. 2 Enable Also encode non-ASCII characters if numeric entities are needed for those characters.
  3. 3 Copy Result or use Swap to reverse the conversion.

Example and practical tips

Encode <b> so the tag can be displayed as text rather than interpreted as markup.

Frequently asked questions

Does this sanitize arbitrary HTML safely?

It is an encoding utility, not a full HTML sanitizer. The correct escaping depends on the output context.

Should I encode text twice?

Usually not. Double encoding can turn an ampersand in an existing entity into another entity. Inspect the result.

Browse all guides

Report an issue

Something broken or not quite right? Tell us and we will look into it.

Accessibility Menu

Personalize your experience. Open with Ctrl+U (Option+U on Mac). Preferences stay in this browser when storage is available.

Move / Hide Widget

Restore at any time with Ctrl+U (Option+U on Mac).

Accessibility statement and help