Encode & decode HTML entities instantly — for developers, content creators and editors.

Real-time Shortcuts: Ctrl+E Encode • Ctrl+D Decode
Smart detection: auto-detects whether input looks encoded.
Try sample text on load. Output auto-updates as you type.

Intro

HTML entities are sequences that represent reserved or special characters in HTML. Encoding converts characters like < or & to safe forms so browsers render them literally and avoid being interpreted as markup.

Why use this tool?

  • Prevent broken markup when inserting user text into HTML.
  • Safely show code snippets or special symbols in web pages.
  • Convert legacy encoded text back to readable form.

How to use

  1. Paste or type text into the Input area.
  2. The tool auto-detects if the text is encoded; output updates in real time.
  3. Use Encode or Decode explicitly, or use shortcuts: Ctrl+E / Ctrl+D.
  4. Validate ensures entities are well-formed. Green background = valid, red = invalid.
  5. Copy or Download results for use in your projects.

They are sequences starting with & and ending with ; (e.g., &amp; &lt;). They allow you to represent characters that would otherwise be treated as HTML syntax.

Encoding turns reserved characters into their entity representations. Decoding returns entities back to the original characters.

While encoding helps prevent unintentional markup rendering, full XSS protection requires proper context-aware encoding and server-side sanitization. Use encoding as part of a broader security approach.

Yes — both named (&copy;) and numeric (© or ©) entity forms are recognized and handled.

Auto-detection checks for entity-like patterns. It's robust for common cases but you can always choose Encode/Decode explicitly.