HTML 엔티티 인코더 / 디코더
특수 문자를 HTML 엔티티로 인코딩하거나 디코딩합니다
| 문자 | 엔티티 (Named) | 엔티티 (Numeric) | 이름 |
|---|---|---|---|
| & | & | & | Ampersand |
| < | < | < | Less Than |
| > | > | > | Greater Than |
| " | " | " | Double Quote |
| ' | ' | ' | Apostrophe |
| ␣ | |   | Non-breaking Space |
| © | © | © | Copyright |
| ® | ® | ® | Registered |
| ™ | ™ | ™ | Trademark |
| € | € | € | Euro |
| £ | £ | £ | Pound |
| ¥ | ¥ | ¥ | Yen |
| « | « | « | Left Guillemet |
| » | » | » | Right Guillemet |
| — | — | — | Em Dash |
| – | – | – | En Dash |
| … | … | … | Ellipsis |
| · | · | · | Middle Dot |
| • | • | • | Bullet |
| × | × | × | Multiplication |
| ÷ | ÷ | ÷ | Division |
추천 다음 단계
관련 도구
사용 방법
텍스트 붙여넣기 또는 입력
입력 영역에 텍스트, 코드 또는 데이터를 입력하세요.
옵션 선택
적용할 변환이나 포맷을 선택하세요.
결과 복사
한 번의 클릭으로 출력을 클립보드에 복사하세요.
이 도구를 사용하는 이유
100% 무료
숨겨진 비용도, 프리미엄 등급도 없습니다 — 모든 기능이 무료입니다.
설치 불필요
브라우저에서 완전히 실행됩니다. 소프트웨어를 다운로드하거나 설치할 필요가 없습니다.
프라이빗 & 안전
데이터가 기기 밖으로 나가지 않습니다. 어떤 서버에도 업로드되지 않습니다.
모바일 지원
완전 반응형 — 스마트폰, 태블릿, 데스크톱에서 사용할 수 있습니다.
HTML Entity Encoding for Secure Web Content
Key Takeaways
- HTML entity encoding converts special characters like <, >, and & into safe representations that browsers render as text, not code.
- Proper entity encoding is a primary defense against Cross-Site Scripting (XSS) attacks in web applications.
- All encoding and decoding is processed in your browser — your content never leaves your device.
HTML entity encoding is a fundamental web security practice that converts characters with special meaning in HTML into their entity equivalents. Without proper encoding, user-supplied content containing characters like < or > could be interpreted as HTML tags, leading to broken layouts or dangerous XSS vulnerabilities. Every web developer should understand when and how to apply entity encoding.
Cross-Site Scripting (XSS) remains in the OWASP Top 10 — proper output encoding prevents the majority of XSS attacks.
Security Importance
Key Concepts
Named vs. Numeric Entities
Named entities like & and < are human-readable, while numeric entities like & and < (or hex &) work for any Unicode character. Named entities cover only a subset of characters.
The Five Critical Characters
The characters < > & " ' must always be encoded in HTML content: < > & " '. These five characters form the minimum encoding set for XSS prevention.
Context-Specific Encoding
Different HTML contexts (element content, attributes, JavaScript, CSS, URLs) require different encoding strategies. Entity encoding alone is not sufficient for JavaScript or URL contexts.
Unicode Special Characters
HTML entities give access to thousands of special characters — from mathematical symbols to currency signs to arrows — without needing special fonts.
Pro Tips
Always encode output, never input — store raw data in your database and encode when rendering to HTML.
Use your framework's built-in escaping (React JSX, Angular templates, Vue {{ }}) rather than manual entity encoding.
Remember to encode inside HTML attributes too — an unencoded quote in an attribute value can break out of the attribute context.
For content that should contain real HTML (like a rich text editor), use a sanitization library like DOMPurify instead of entity encoding.
All HTML entity encoding and decoding is performed entirely in your browser. Your content is never transmitted to any external server, ensuring privacy for sensitive HTML content.