Integer to HTML Entity Converter

Converts a list of integers (one per line), each treated as a Unicode code point, into decimal numeric HTML character entities (&#N;). Code points must be within 0-0x10FFFF and outside the UTF-16 surrogate range (0xD800-0xDFFF). A free online tool from Staaarter, right in your browser.

Runs locallyUpdated 2026-07-27

Overview

Introduction

HTML and XML let you reference any Unicode character by its numeric code point using a numeric character reference like A for "A". This tool builds that reference from a plain list of integers.

It treats each integer as a Unicode code point and validates it against the ranges that are actually renderable as a single character.

What Is Integer to HTML Entity Converter?

A converter that takes a list of integers, one per line, and outputs the corresponding decimal numeric HTML entity for each, in the form &#N;.

Each integer is treated as a Unicode code point, the same numbering used throughout Unicode and HTML/XML numeric references.

How Integer to HTML Entity Converter Works

Each line is parsed as a whole number.

The tool checks that the value falls within 0 and 0x10FFFF (the full Unicode range) and isn't in the reserved UTF-16 surrogate range of 0xD800-0xDFFF.

Valid values are wrapped in the decimal numeric entity syntax: &#, the number, then a semicolon.

When To Use Integer to HTML Entity Converter

Use it when authoring HTML/XML content that needs to reference specific characters by code point, such as symbols not easily typed directly.

It's also useful for teaching how numeric character references work in markup languages.

Features

Advantages

  • Validates the full valid Unicode code point range, catching out-of-range and surrogate values before they cause rendering issues.
  • Simple, direct mapping with no ambiguity about which numbering system is used (Unicode code points).

Limitations

  • Only produces the decimal entity form, not the hexadecimal form (&#xN;).
  • Doesn't validate whether a code point is assigned to an actual character in the current Unicode standard, only that it's in the structurally valid range.

Examples

Letter A

Input

65

Output

A

Emoji code point

Input

128512

Output

😀

Best Practices & Notes

Best Practices

  • Double-check any code point above the Basic Multilingual Plane (above 0xFFFF) renders as expected in your target environment, since not all fonts support every character.

Developer Notes

Range validation happens before formatting: values are checked against `0` to `0x10FFFF` and the surrogate band `0xD800`-`0xDFFF` is explicitly excluded, since those code points have no meaning outside a UTF-16 surrogate pair.

Integer to HTML Entity Converter Use Cases

  • Generating numeric character references for HTML/XML authoring
  • Converting a list of Unicode code points into markup-ready entities
  • Teaching how numeric character references map to Unicode code points

Common Mistakes

  • Entering a surrogate-range value (0xD800-0xDFFF, i.e. 55296-57343) expecting it to work as a standalone character.
  • Assuming the decimal entity form is the only valid HTML entity syntax; hexadecimal (&#xN;) is also valid and accepted by the reverse converter.

Tips

  • Use the HTML Entity to Integer Converter to check the code point behind an entity you find elsewhere.

References

Frequently Asked Questions