View ASCII character codes with decimal, hex, octal

Look up seven-bit ASCII positions in decimal, hexadecimal, octal, binary, and named control form.

freeworks offlinenothing uploaded
ToolASCII Table
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

Each selected integer is rendered in four bases, controls receive abbreviations, and printable codes 32–126 show their glyphs. Standard mode ends at 127; the optional 128–255 display is an ISO-8859-1-style JavaScript extension, not ASCII.

  • Printable mode is selected first so invisible controls do not crowd the everyday reference range.
  • Binary values are padded to eight positions for byte readability even though ASCII itself uses seven bits.

Worked example

Printable Characters
Display the printable ASCII character table (codes 32-126)
Input
											Range: printable
Format: compact
										
Output
												Dec  Hex  Oct  Char
---  ---  ---  ----
 32  0x20  040   
 33  0x21  041  !
 34  0x22  042  "
 35  0x23  043  #
 36  0x24  044  $
 37  0x25  045  %
 38  0x26  046  &
 39  0x27  047  '
 40  0x28  050  (
 41  0x29  051  )
 42  0x2A  052  *
 43  0x2B  053  +
 44  0x2C  054  ,
 45  0x2D  055  -
 46  0x2E  056  .
 47  0x2F  057  /
 48  0x30  060  0
 49  0x31  061  1
 50  0x32  062  2
 51  0x33  063  3
 52  0x34  064  4
 53  0x35  065  5
 54  0x36  066  6
 55  0x37  067  7
 56  0x38  070  8
 57  0x39  071  9
 58  0x3A  072  :
 59  0x3B  073  ;
 60  0x3C  074  <
 61  0x3D  075  =
 62  0x3E  076  >
 63  0x3F  077  ?
 64  0x40  100  @
 65  0x41  101  A
 66  0x42  102  B
 67  0x43  103  C
 68  0x44  1…
											

When to use this

Protocol debugging converts hexadecimal delimiters, programming lessons inspect digit and letter codes, and terminal investigations identify CR, LF, TAB, ESC, and DEL.

Edge cases

  • Code 10 is labelled LF rather than inserting a real line break into its table cell.
  • Positions 128–255 remain outside ASCII even when the optional extension displays them.
  • Code 127 is DEL and not a printable glyph despite sitting above the printable 32–126 range.

References