↔️

Convertisseur d'Entités HTML

Encode et décode les entités HTML pour prévenir le XSS ou afficher correctement les caractères spéciaux.

converter html security

Input

Output

About HTML Entity Converter

HTML entities are used to display reserved characters (like `<` or `>`) or non-displayable characters (like non-breaking spaces) in HTML. They are also crucial for security, preventing cross-site scripting (XSS) by encoding user-supplied data before rendering it as HTML.

This tool allows you to easily encode plain text into HTML entities, making it safe for HTML display, or decode HTML entities back into their original characters.

Features:

  • Convert plain text into HTML entities (e.g., `&` becomes `&`, `<` becomes `<`)
  • Convert HTML entities back into plain text (e.g., `&` becomes `&`, `<` becomes `<`)
  • Helpful for preventing XSS vulnerabilities
  • Useful for correctly displaying special characters
  • Clear input and copy output with one click

How to use:

  1. Paste your text or HTML in the input field.
  2. Click "Encode Entities" to convert special characters into their HTML entity form.
  3. Click "Decode Entities" to convert HTML entities back into their original characters.
  4. The converted result will appear in the output field.
  5. Click "Copy" to copy the result to your clipboard.