FREE ONLINE HTML ENTITY CONVERTER

HTML Encoder Decoder Online.

VeltoGen's free HTML encoder decoder converts special characters into HTML entities and restores supported entities to readable text. Use our HTML encoder to create named, decimal or hexadecimal character references, or use the HTML decoder online to decode them directly in your browser.

✓ Named, Decimal & Hex✓ Unicode Support✓ Browser-Based Processing
01Choose FormatSet options
02ConvertEncode or decode
03DownloadSave results
HTML ENTITY CONVERTER WORKSPACE NAMED · DECIMAL · HEX
STEP 01 · CONVERSION SETTINGS

Choose Your HTML Conversion Mode

Select whether to encode special characters or decode existing HTML character references.

Operation
Entity Output Format

Named mode uses common HTML character names. When you enable non-ASCII encoding, it uses decimal references for other characters.

STEP 02 · ENTER YOUR CONTENT

Enter HTML or Text to Encode

Enter HTML source or ordinary text. The converter will encode the supported characters using your selected format.

STEP 03 · OUTPUT OPTIONS

Customize HTML Encoding

Choose whether non-ASCII Unicode characters should also be converted.

&

The five essential characters are always encoded: &, <, >, " and '. Existing references will be encoded again, so < becomes <.

Entity encoding is not encryption or a universal HTML sanitizer. Use context-appropriate escaping when building applications.

ABOUT THE TOOL

HTML Encoder Decoder Online Free

VeltoGen's free HTML encoder decoder helps you convert ordinary characters into HTML character references and decode supported references back into readable text.

An HTML entity can represent a character with a readable name or a numeric Unicode value. For example, <, < and < all represent the less-than sign.

Use the HTML encoder to encode essential HTML characters in Named, Decimal or Hexadecimal format. You can also enable encoding for non-ASCII Unicode characters such as currency symbols and emoji.

Our HTML decoder online converts supported named and numeric references back into characters. Your output appears as literal text, without rendering HTML markup.

HOW IT WORKS

How to Encode or Decode HTML Entities

Convert HTML characters in four simple steps.

  1. Choose Encode or Decode

    Select whether you want to create HTML references or convert them back into readable text.

  2. Select the Format

    For encoding, choose Named, Decimal or Hexadecimal and optionally include non-ASCII characters.

  3. Enter Your Text

    Paste ordinary text, HTML source or complete HTML character references.

  4. Convert and Save

    Click Encode HTML or Decode HTML, then copy or download the complete output.

HTML CONVERTER FEATURES

Features of Our Free HTML Encoder

Work with character references, Unicode text and multiple encoding formats.

&

Essential HTML Encoding

Encode ampersands, angle brackets, double quotes and apostrophes.

#

Three Encoding Formats

Choose named, decimal numeric or hexadecimal numeric references.

Aa

Unicode Encoding

Optionally encode non-ASCII characters, including multilingual text and emoji.

↔

Named and Numeric Decoding

Decode browser-supported semicolon-terminated HTML character references.

<>

Safe Text Preview

Display decoded HTML markup as literal text instead of rendering it.

↓

Copy and Download

Copy full results, download UTF-8 text and reuse output as input.

PRACTICAL ADVANTAGES

Benefits of HTML Entity Encoding and Decoding

Save time when converting special characters and inspecting escaped HTML text.

01

Reduce Manual Replacement

Convert repeated special characters without editing them individually.

02

Prepare Readable Examples

Encode HTML markup characters when preparing source examples for display as text.

03

Support Unicode Content

Keep multilingual content readable or represent non-ASCII text as numeric references.

04

Reuse Your Results

Copy, download or convert the output again with the opposite operation.

REAL-WORLD USE CASES

Why and When to Use an HTML Entity Converter

Useful for web developers, technical documentation, debugging and Unicode content.

HTML TUTORIALS

Display HTML Code as Text

Prepare markup examples so less-than and greater-than signs can be displayed literally.

WEB DEVELOPMENT

Encode Special Characters

Convert characters with special meaning in HTML character-reference contexts.

CONTENT DEBUGGING

Read Escaped HTML Text

Inspect named and numeric entities found in HTML-related text data.

MULTILINGUAL CONTENT

Represent Unicode Characters

Optionally convert non-ASCII letters, symbols and emoji to numeric references.

HTML CHARACTER REFERENCE TABLE

Common HTML Entities: Named, Decimal and Hex

These five essential characters are encoded by default in the selected output format.

CharacterNamedDecimalHexadecimal
&&amp;&#38;&#x26;
<&lt;&#60;&#x3C;
>&gt;&#62;&#x3E;
"&quot;&#34;&#x22;
'&apos;&#39;&#x27;
Example: HTML Entity Encoding <p>Hello & welcome!</p> &lt;p&gt;Hello &amp; welcome!&lt;/p&gt;

The output is shown as text, not as executable HTML. This illustrates Named mode.

COMPLETE HTML ENTITY GUIDE

Understanding HTML Entity Encoding and Decoding

Learn about character references, HTML escaping, Unicode handling and correct output contexts.

01

What HTML Character References Mean

HTML character references represent characters using a name or a Unicode numeric value. For example, &lt;, &#60; and &#x3C; all represent a less-than sign.

References are part of HTML text representation, not encryption.
02

Named HTML Entities

Named entities use a recognizable identifier such as &amp;, &lt; or &quot;. This tool uses named output for five essential characters and numeric fallback for other non-ASCII characters.

Named mode is designed for readable essential-character output.
03

Decimal and Hexadecimal References

Decimal references use the form &#number;, while hexadecimal references use &#xnumber;. Both can represent Unicode code points.

The selected encoding format changes representation, not the underlying character.
04

HTML Entity Decoding

Decoding converts complete, supported semicolon-terminated references back to characters. Unknown and incomplete references remain unchanged, and the tool performs one decoding pass at a time.

Use Output as Input for another deliberate decoding pass.
05

Encoding Non-ASCII Unicode Text

When enabled, non-ASCII characters such as ©, €, Hindi letters, Arabic letters and emoji are represented as numeric references. Valid surrogate pairs are treated as one Unicode code point.

Ordinary ASCII letters remain unchanged unless they are one of the five essential characters.
06

Encoding Is Not Sanitization

Entity encoding is useful for certain HTML text and attribute contexts, but it is not a universal defense against injection. JavaScript, CSS, URLs and other contexts need appropriate handling.

Use framework escaping and context-aware security controls in production applications.
07

Browser Processing and Output Safety

The converter works locally in the browser, and decoded output is displayed as text. It does not intentionally send input to a conversion API or execute decoded tags.

Do not insert untrusted decoded output into innerHTML elsewhere in your application.

Privacy and HTML Output Safety

This component converts text in your browser without intentionally uploading it to a conversion API or storing it in browser storage.

Converted output is displayed as literal text. Clearing the tool does not remove downloaded files or clipboard content. HTML entity conversion is not a replacement for context-aware sanitization and escaping.

QUESTIONS & ANSWERS

Frequently Asked Questions

Common questions about named HTML entities, Unicode, numeric references and safe decoding.

What is an HTML encoder decoder?

An HTML encoder decoder converts special characters into HTML character references and converts supported character references back into readable characters.

How do I use this HTML encoder?

Select Encode, choose Named, Decimal or Hexadecimal format, paste your text and click Encode HTML. You can then copy or download the complete result.

How can I decode HTML entities online?

Choose Decode, paste the HTML entity text and click Decode HTML. The result appears as readable text rather than rendered HTML.

Is this HTML decoder online free?

Yes. VeltoGen provides free browser-based HTML entity encoding and decoding without registration or software installation.

What are HTML character entities?

HTML character entities are references such as &lt;, &amp; and &quot; that represent characters in HTML content. Numeric references use decimal or hexadecimal Unicode values.

Which characters are encoded by default?

By default, the tool encodes ampersands, less-than signs, greater-than signs, double quotation marks and apostrophes.

What is the difference between Named, Decimal and Hexadecimal?

Named references use names such as &lt;. Decimal references use numbers such as &#60;. Hexadecimal references use hexadecimal values such as &#x3C;.

Does Named mode support every Unicode character?

Named mode uses named references for five essential characters. When non-ASCII encoding is enabled, other non-ASCII characters use decimal numeric references.

Can the HTML decoder read &copy; and &euro;?

Yes. The tool uses the browser HTML parser to decode supported named and numeric character references that end with a semicolon.

Does it decode references without a semicolon?

No. This converter intentionally requires complete semicolon-terminated references. Incomplete sequences remain unchanged.

Can I encode Hindi, Arabic and emoji?

Yes. Enable non-ASCII encoding to represent non-ASCII Unicode characters as numeric character references, including characters from Hindi, Arabic and emoji.

Does the tool support decimal HTML entities?

Yes. Decimal mode creates references such as &#60;, and Decode mode can interpret supported decimal character references.

Does it support hexadecimal HTML entities?

Yes. Hexadecimal mode creates references such as &#x3C;, and the decoder supports hexadecimal numeric references.

Can I decode HTML entities more than once?

Each conversion performs one decoding pass. Use Output as Input and run Decode again if you intentionally want another pass.

Why do some HTML entities stay unchanged?

Unknown named references, incomplete references and unsupported sequences are left unchanged instead of being guessed.

Will decoded HTML tags or scripts run?

No. Converted output is displayed as literal text using Angular interpolation. The tool does not execute or render decoded markup.

Is HTML entity encoding a complete security sanitizer?

No. Correct escaping depends on the context. HTML text, HTML attributes, JavaScript, CSS and URLs have different safety requirements.

Why can invalid numeric entities become replacement characters?

HTML defines error-handling behavior for invalid numeric character references. Some invalid values decode to a replacement character.

What is the maximum input length?

The tool accepts up to 200,000 UTF-16 code units. Large output previews are shortened, but copying and downloading include the full result.

Are my HTML texts uploaded to a server?

This component performs conversions locally in the browser. It does not intentionally upload the input to a conversion API or save it to browser storage.