Skip to content
cosmodev ~/tools/html-entity-encoder

HTML 엔티티 인코더/디코더

Encoders & Crypto

텍스트를 HTML 엔티티로 인코딩하고 엔티티를 다시 텍스트로 디코딩합니다(이름형 + 숫자형). UTF-8 안전, 브라우저에서 완전히 동작, 정확한 입력을 담은 공유 링크 제공.

0자 · 0바이트

출력
텍스트를 입력하거나 붙여넣으면 인코딩돼요.

0자 · 0바이트

(문서는 영어)

What it does

The HTML Entity Encoder/Decoder converts text to HTML entities and back. Encode escapes the five HTML-significant characters (& < > ' ") into their named references (&amp; &lt; &gt; &apos; &quot;) so arbitrary text is safe to embed in HTML. Optionally, switch to Encode to numeric and every non-ASCII character - accents, symbols, emoji - is also turned into decimal numeric references (© → &#169;), producing ASCII-safe output for legacy charsets or email. Decode resolves the full HTML5 named set (&copy;, &hearts;, &eacute;, … over 2,100 names) plus decimal (&#169;) and hexadecimal (&#xA9;) references back into readable characters, leaving anything it doesn’t recognize untouched. Everything runs 100% client-side: nothing you paste is ever sent to a server.

How to use it

  1. Paste your text into the Input box (or hit Sample for a demo).
  2. Pick Encode or Decode from the segmented control on the left.
  3. When encoding, choose how to handle Non-ASCII characters: Leave as-is (escape only & < > ' ") or Encode to numeric (also convert every non-ASCII code point to &#NN;).
  4. Read the result in Output, which shows live char and byte counts.
  5. Copy the result, Swap to feed it straight back as input and flip direction, or Copy share link to send the exact view to a teammate.

Examples

Encode HTML special characters (Non-ASCII: Leave as-is)

Input: <a href="x">Tom & Jerry's</a>

Output:

&lt;a href=&quot;x&quot;&gt;Tom &amp; Jerry&apos;s&lt;/a&gt;

Encode everything non-ASCII to numeric (Non-ASCII: Encode to numeric)

Input: © 2026 - €5

Output:

&#169; 2026 &#8212; &#8364;5

Decode named and numeric entities

Input: Copyright &copy; 2026 &#x2014; &euro;5

Output:

Copyright © 2026 - €5

Good to know

  • Unknown entities pass through: &bogus; and bare ampersands like Tom & Jerry are left untouched, never mangled or errored.
  • Robust by design: out-of-range code points (&#999999999;) and lone surrogates are preserved as-is - the decoder never throws.
  • Shareable: your input and settings are encoded in the URL (?mode=…&a=1&t=…), so a link reproduces the exact view.
  • Private: all encoding and decoding happens locally in your browser - safe for sensitive content.
  • Related tools: Base64Base64An encoding representing binary data as 64 safe ASCII characters, so it survives transport through text-only channels. It encodes — it does not encrypt., URL Encode/Decode, JSON Formatter.
소스 코드14개 언어

100% 클라이언트 측 · 데이터는 브라우저 밖으로 나가지 않습니다. 도움이 되었나요? 팀원에게 공유해 보세요.