HTML Encoder/Decoder

Encode and decode HTML entities online. Safely escape HTML for display or attributes and decode back.

Input

Mode

Options

Output

✨ Features

  • ✅ Encode text and files to HTML entities
  • ✅ Decode HTML entities back to text
  • ✅ Support for named entities (&, <, etc.)
  • ✅ Support for numeric entities ({, {)
  • ✅ Encode quotes and non-ASCII characters
  • ✅ Text and attribute encoding modes
  • ✅ File upload and download support
  • ✅ Copy to clipboard with one click

📖 How to Use

  1. Enter HTML or text in the input field
  2. Choose "Encode" or "Decode" mode
  3. Configure encoding options if needed
  4. Click "Convert" to process
  5. Copy the result or download as a file

❓ FAQ

What's the difference between encoding and decoding?

Encoding converts special characters to HTML entities (e.g., < becomes &lt;). Decoding reverses this process.

When should I use "Encode quotes"?

Enable this when encoding HTML attributes to safely escape quote characters (" and ').

What does "Encode non-ASCII" do?

This converts non-ASCII characters (like é, ñ, 中) to numeric HTML entities (é, ñ, 中).

What's the difference between Text and Attribute modes?

Text mode encodes <, >, and &. Attribute mode also encodes quotes for safe HTML attributes.

Can I upload files?

Yes! Upload HTML files or text files to encode or decode their contents.

Is my data private?

Yes! All processing happens in your browser. We don't send or store your data.

What HTML entities are supported?

We support common named entities (&, <, >, ", ',  , etc.) and all numeric entities ({, {).

Can I use this offline?

Yes! Once the page loads, all processing happens in your browser without internet connection.