Monu Tools

HTML 엔티티 인코더/디코더

텍스트를 HTML 엔티티로 인코딩하거나 엔티티를 텍스트로 디코딩합니다. UTF-8 안전하며 클라이언트 측에서 실행됩니다.

HTML 인코더 사용 방법

  1. 01

    텍스트 또는 HTML을 붙여넣으세요.

  2. 02

    인코딩(HTML 특수 문자 이스케이프), 전체 인코딩(비ASCII 문자도 이스케이프), 또는 디코딩을 선택하세요.

  3. 03

    결과를 복사하세요.

What it does

An HTML entity encoder and decoder for escaping special characters so they display as text instead of being interpreted as markup. It converts characters like < and & into entities such as &lt; and &amp;, and decodes them back again.

Encoding and decoding are UTF-8 safe and run entirely in your browser, so nothing you paste is uploaded.

How encoding works

Encoding always escapes the five characters that have special meaning in HTML: & < > " and '. That is what stops a stray < from being read as the start of a tag, or text from accidentally breaking out of an attribute.

An Encode all option additionally turns every non-ASCII character into a numeric entity, which is useful for legacy systems, some email pipelines, or anywhere you need to be sure the output is pure ASCII.

What decoding understands

Decoding understands all three entity forms: named entities like &amp; and &copy;, decimal entities like &#233;, and hexadecimal entities like &#x20AC;. Sequences it does not recognize are left untouched rather than mangled.

Encoding and XSS

Escaping the HTML specials is the core defense against HTML injection and cross-site scripting (XSS): any untrusted text should be encoded before it is placed into a page, so it renders as harmless characters instead of active markup.

자주 묻는 질문

인코딩과 전체 인코딩의 차이는 무엇인가요?

인코딩은 HTML에서 이스케이프해야 하는 다섯 문자(& < > " ')만 이스케이프합니다. 전체 인코딩은 추가로 모든 비ASCII 문자를 숫자 엔티티로 변환하여 레거시 시스템이나 이메일에 유용합니다.

어떤 엔티티를 디코딩할 수 있나요?

&amp;, &copy; 같은 이름 있는 엔티티, &#233; 같은 10진수 엔티티, &#x20AC; 같은 16진수 엔티티입니다. 알 수 없는 시퀀스는 변경되지 않습니다.

XSS를 방지할 수 있나요?

HTML 특수 문자를 인코딩하는 것이 마크업 주입에 대한 핵심 방어입니다. 신뢰할 수 없는 텍스트를 HTML에 배치하기 전에 항상 인코딩하세요.

출처

이 도구 임베드하기

이 도구를 직접 운영하는 웹사이트에 추가하세요. 아래 코드를 복사하면 자동으로 최신 상태로 유지됩니다.

<iframe src="https://monu.tools/embed/ko/html-encoder" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>

관련 도구