본문으로 건너뛰기
Tools Star Hub

HTML 인코더 / 디코더

브라우저에서 HTML 엔티티를 인코딩하거나 디코딩합니다. 입력은 텍스트로 처리되며 실행되지 않습니다.

도구를 불러오는 중…

이 도구는 브라우저에서 실행됩니다. 입력값, 파일, 생성된 값은 이 기기에 남습니다. 즐겨찾기와 최근 사용한 도구를 이용하더라도 로컬 저장소에는 도구 이름만 저장되며, 비밀번호나 문서, QR 내용은 절대 저장되지 않습니다. 자세한 내용은 개인정보처리방침을 확인하세요.

이 도구의 자세한 안내(사용법, 예시, 자주 묻는 질문)는 현재 영어로만 제공됩니다.

What this tool does

Escape HTML characters so they can be shown as text, or turn common entities back into characters. Use it when a tutorial or a comment needs to display a tag instead of running it. <div> becomes &lt;div&gt;, and the markup is never executed on this page.

How to use

  1. Paste HTML or encoded text into the input box.
  2. Choose HTML encode or HTML decode, then press the matching button.
  3. Copy the result, swap the two boxes, or clear both.

Examples

  • Encode a tag

    <div>Hello</div> becomes &lt;div&gt;Hello&lt;/div&gt; so it can be shown as text.

  • Ampersands and quotes

    & is encoded as &amp;, double quotes as &quot;, and apostrophes as &#39;.

How it works

HTML encoding replaces characters that have special meaning in markup. Decoding turns common named entities and numeric character references back into characters. The tool treats your input as plain text. It does not run HTML or inject it into the page.

Limitations

The encoder escapes characters so they can be shown as text. Decode recognizes common named entities and numeric references. An uncommon named entity can remain as typed. The markup is never executed.

See the disclaimer for what these tools do not cover.

FAQ

Is the HTML Encoder / Decoder free?
Yes. Escaping HTML characters, or turning entities back into characters, is free, with no signup.
Will my HTML run on this page?
No. Input is never executed and is never inserted with innerHTML.
Is my input sent to a server?
No. Encoding and decoding happen in this tab. The text is not posted to a server or saved in local storage.
What are HTML entities?
HTML entities are codes such as &lt; for < and &amp; for & that let a page show those characters as text instead of reading them as markup.
When should I encode HTML?
Encode text when you want to display code on a page, or when user input is shown inside HTML, so tags appear as text instead of running.