๐ŸŒHTML Entities

Encode and decode HTML entities

About the HTML Entities

HTML Entities encodes and decodes special characters such as <, >, &, and quotes into their HTML-safe entity equivalents, and back again.

It helps prevent broken markup and cross-site scripting issues when displaying user content, and lets you read entity-encoded HTML.

Common use cases

  • Escaping user input before rendering it as HTML
  • Displaying code snippets inside web pages
  • Decoding entity-encoded content from feeds or APIs
  • Fixing mojibake or broken special characters

How to use the HTML Entities

  1. Paste your text or HTML into the input field.
  2. Choose Encode to create entities or Decode to convert them back.
  3. Copy the result.

Frequently asked questions

Why escape HTML entities?

Escaping characters like < and & prevents them from being interpreted as markup, avoiding broken layouts and XSS vulnerabilities.

Does it handle named and numeric entities?

Yes, common named entities and numeric character references are supported when decoding.

Is anything uploaded?

No, all processing happens in your browser.