🧰Locly

Encode & Decode HTML Entities

Convert text to HTML entities and back instantly

About This Tool

HTML Entity Encoder/Decoder converts special characters to HTML entities (and back) so you can safely embed text in HTML. Encoding and decoding are processed locally in your browser.

How to Use

  1. Paste text into the input
  2. Click Encode or Decode
  3. Copy the output
  4. Use Swap to reverse direction
  5. Clear to start over

Common Use Cases

  • Escape user text for HTML snippets
  • Decode entities from CMS content
  • Prepare blog HTML
  • Debug & style markup
  • Convert quotes and angle brackets safely

FAQ

Q1: What characters are encoded?

Common special characters such as &, <, >, ", and ' plus other characters as needed by the browser encode path.

Q2: Is text uploaded?

No. Encoding is processed locally in your browser.

Q3: Can I decode numeric entities?

Yes. Standard named and numeric entities can be decoded.

Q4: Will Encode change already-escaped text?

Encoding twice can double-escape. Decode first if the text is already escaped.

Q5: Is this the same as URL encoding?

No. HTML entities are for HTML content; URL encoding is for query strings.

Related Tools