Web & Developer Utilities100% Client-Side

Text to Numeric HTML Entities

Paste text to see its characters written as decimal HTML references. The tool encodes ordinary letters and spaces as well as punctuation, accented letters, and emoji. Use it to build a test fixture, document a symbol by its numeric value, or create a source example that relies on explicit references. The output can be longer than the input, especially when most characters would otherwise be readable as plain text.

Input
21 chars•1 lines
Output

How to Use the Text to HTML Entities Online

  1. 1Paste the original text as you want it to appear, including any spaces, punctuation, or line breaks you want represented.
  2. 2Read each decimal reference from its opening ampersand and hash through the closing semicolon. One reference represents one encoded code point.
  3. 3Copy the resulting string into your fixture or HTML source. Select just the part you need if you are documenting a single symbol.
  4. 4Decode the result with the HTML Entity Decoder to inspect the original text before sharing the fixture.

Input & Output Examples

The letter, space, and heart each become a decimal reference.

Input Sample
A ♥
Expected Output
A ♥

The accented letter and the emoji each have one reference, including the emoji whose numeric value exceeds 65535.

Input Sample
é🙂
Expected Output
é🙂

Practical Developer Workflows

  • Create a fixture with explicit numeric references to test whether an HTML reader decodes selected characters.
  • Document the decimal representation of symbols when writing about character encoding or building a short example.
  • Compare how a string containing letters, spaces, and emoji appears when every code point has a numeric spelling.

Zero Server Uploads & Complete Privacy

Runs 100% in your browser; no data is uploaded to any server.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

It writes a numeric reference for ordinary letters and spaces too. The HTML Entity Encoder is useful when you just need references for reserved markup characters and want the rest of the source to remain readable.

Explore Other Tools

12 suggested tools

View all tools