DevKits

ASCII 25

End of Medium (EM)

Control character

Marks the physical end of usable media.

Common uses & context

Decimal 25 (0x19) is the End of Medium control character — one of the 33 non-printing codes in the C0 control block (0–31 plus DEL at 127). Control characters were designed to command teletype and terminal hardware rather than to represent visible glyphs, so EM produces no letter, digit, or symbol on screen. Its8-bit binary form is 00011001 and its octal value is 0031.

Marks the physical end of usable media.

BecauseEM is invisible, it is easiest to work with by its numeric code. In most languages you can produce it with the escape or code-point form shown below, and detect it by comparing a byte against 25 (0x19). When it turns up unexpectedly in text — pasted from a terminal, a legacy file, or a binary blob — it is usually the cause of "invisible character" bugs that break parsing or comparisons.

All encodings at a glance

Decimal25
Hexadecimal0x19
Octal0031
Binary00011001
HTML numeric entity
URL encoding%19
UTF-8 bytes0x19

Code snippets

JavaScript

String.fromCharCode(25); // "EM"
25.toString(16); // "19"

Python

chr(25)           # control char EM
ord(chr(25))      # 25
hex(25)           # '0x19'

HTML

&#25;   <!-- numeric entity (no named entity for this character) -->

Programming notes

  • Detect it by numeric comparison: byte === 25 (0x19). It has no printable glyph to match on.
  • Control characters below 32 are stripped or rejected by many text validators — check for them when sanitizing user input.
  • In a hex dump EM shows as 19; in a "cat -v" style view it may appear as a caret sequence.

Frequently asked questions

What character is ASCII code 25?

ASCII code 25 is End of Medium (EM), a non-printing control/whitespace character. In hexadecimal it is 0x19 and in binary 00011001. It has no visible glyph — it controls formatting or hardware instead of drawing a symbol.

What is 0x19 in ASCII?

Hexadecimal 0x19 equals decimal 25, which is theEnd of Medium control character (EM). To convert hex to ASCII yourself, read the two hex digits as a base-16 number (0x19 = 25) and look up that code point.

How do I write the character with code 25 in code?

In JavaScript use String.fromCharCode(25); in Python use chr(25); in HTML use the numeric entity &#25;. In a URL it is percent-encoded as %19, and in UTF-8 it is stored as the byte sequence 0x19.

Is ASCII 25 (EM) printable?

No. EM (code 25) is a control character with no visible glyph. It instructs software or hardware rather than displaying a symbol, which is why it often appears as an invisible or replacement character when it leaks into ordinary text.

Nearby codes

Encode & convert this character