Skip to content
Private: files never leave your device

HTML Entity Encoder / Decoder

Show code and symbols safely on a web page by turning characters like < > & and quotes into HTML entities, or decode entities back into readable text.

HTML Entity Encoder / Decoder tool

Escape < > & and quotes, or decode entities back to text.

Handled on your device, so your files stay private.

HTML Entity Encoder / Decoder at a glance

Convert angle brackets, ampersands, quotes and symbols into HTML entities, or decode entities back to text. Named or numeric entities, all in your browser.

Cost
Free to use, with no account, watermark or usage cap.
Privacy
Processing happens on your device; nothing is sent to our servers.
Devices
Up-to-date Chrome, Edge, Firefox or Safari on computers, Android phones and iPhones.
Last updated

Encoding HTML entities, step by step

  1. Pick Encode or Decode.
  2. Paste your text or HTML.
  3. Choose named entities like &copy; where possible, and whether to encode all punctuation.
  4. Copy the result.

When you need entities

To show HTML code as text in a page, in a blog post or documentation, the angle brackets must be written as &lt; and &gt;, or the browser treats them as tags. Encoding also protects against broken layouts when user input is inserted into HTML.

Your code stays private

Many online text tools send what you paste to a server. These run entirely in your browser, so drafts, code, passwords and customer data never leave your device, and nothing is saved.

Frequently asked questions

Named or numeric entities?

Both work in every browser. Named ones such as &copy; are easier to read; numeric ones like &#169; cover every character.

Do I need to encode accents and emoji?

Not on pages saved as UTF-8. Encoding them is only needed for systems that cannot handle UTF-8.

Is my text uploaded?

No. Everything runs in your browser on your own device. Nothing you type is sent, logged or saved.