JBM-Computing

Character codes

Characters and their codes.

Unicode = UTF-8 (Unicode Transformation Format - 8-bit) is the most common character encoding for the internet and backward-compatible with ASCII

ASCII codes = UTF-8 codes 0-127 (“Basic Latin”) and 128-255 (“Latin-1 Supplement”)

CSS uses the UTF-8 hex code in the content property of the ::before pseudo-element e.g:
p::before {content:'\2022'}
inserts a bullet character before the content of the <p> tag.

 

HTML/UTF-8 codes Alt codes Links

 

Different dashes (in different fonts)

A T C hex dec html x3
box drawings light horizontal (Box Drawing)
&#x2500;&#9472;&HorizontalLine;───
hyphen-minus (Basic Latin)
-- - &#x002D;&#0045; ---
hyphen (General Punctuation)
&#x2010;&#8208;&dash; ‐‐‐
figure dash (General Punctuation)
&#x2012;&#8210; ‒‒‒
en dash (General Punctuation)
&#x2013;&#8211;&ndash; –––
em dash (General Punctuation)
&#x2014;&#8212;&mdash; ———
horizontal bar (General Punctuation)
&#x2015;&#8213;&horbar; ―――
minus sign (Mathematical Operators)
&#x2212;&#8722;&minus; −−−

 

Some other characters

A T C hex dec html
  
non-breaking space(Latin-1 Supplement)
    &#x00A0;&#0160;&nbsp;
soft hyphen(Latin-1 Supplement)
­­­ &#x00AD;&#0173;&shy;
multiplication sign (Latin-1 Supplement)
××× &#x00D7;&#0215;&times;
division sign (Latin-1 Supplement)
÷÷÷&#x00F7;&#0247;&divide;
bullet (General Punctuation)
&#x2022;&#8226;&bull;
white bullet (Geometric Shapes)
&#x25E6;&#9702;
black circle (Geometric Shapes)
&#x25CF;&#9679;
white circle (Geometric Shapes)
&#x25CB;&#9675;
black square (Geometric Shapes)
&#x25A0;&#9632;
white square (Geometric Shapes)
&#x25A1;&#9633;
black small square (Geometric Shapes)
&#x25AA;&#9642;
white small square (Geometric Shapes)
&#x25AB;&#9643;
medium small white circle (Miscellaneous Symbols)
&#x26AC;&#9900;

 

“soft hyphen” only appears if the word is split/wrap­ped at the end of a line

A=Arial T=Times C=Consolas
 

1st 256 HTML/UTF-8/ASCII codes (decimal)

1st 128 are identical to Windows-1252 character encoding with most of the rest being the same

0 to 31 are control characters:
0:(null), 9:(tab), 10:(newline/linefeed/LF), 13:(carriage return/CR), 32:(space), 127:(delete), 160:(non-breaking space), 173:(soft hyphen/SHY)

32 33! 34" 35# 36$ 37% 38& 39'
40( 41) 42* 43+ 44, 45- 46. 47/ 480 491
502 513 524 535 546 557 568 579 58: 59;
60< 61= 62> 63? 64@ 65A 66B 67C 68D 69E
70F 71G 72H 73I 74J 75K 76L 77M 78N 79O
80P 81Q 82R 83S 84T 85U 86V 87W 88X 89Y
90Z 91[ 92\ 93] 94^ 95_ 96` 97a 98b 99c
100d101e102f103g104h105i106j107k108l109m
110n111o112p113q114r115s116t117u118v119w
120x121y122z123{124|125}126~127128129
130131ƒ132133134135136ˆ137138Š139
140Œ141142Ž143144145146147148149
150151152˜153154š155156œ157158ž159Ÿ
160 161¡162¢163£164¤165¥166¦167§168¨169©
170ª171«172¬173­174®175¯176°177±178²179³
180´181µ182183·184¸185¹186º187»188¼189½
190¾191¿192À193Á194Â195Ã196Ä197Å198Æ199Ç
200È201É202Ê203Ë204Ì205Í206Î207Ï208Ð209Ñ
210Ò211Ó212Ô213Õ214Ö215×216Ø217Ù218Ú219Û
220Ü221Ý222Þ223ß224à225á226â227ã228ä229å
230æ231ç232è233é234ê235ë236ì237í238î239ï
240ð241ñ242ò243ó244ô245õ246ö247÷248ø249ù
250ú251û252ü253ý254þ255ÿ

 

Alt codes

Holding down the Alt key while typing a number (using the keyboard number pad) produces a character when you release the Alt key:

without a leading zero, “Code page 850” is used - see table below.

with a leading zero, “Windows-1252” is used - see table above
(32 - 126 are the same as 032 - 0126)
e.g. Alt+13 = ♪  whereas  Alt+013 = (carriage return)

Alt key codes without a leading zero can differ depending on how the application you’re in handles character encoding (system code page, character mapping, legacy fallback, modern interpretation, system settings, etc)
- hence the second, alternative table below

0:(null), 32:(space), 255:(non-breaking space), 240:(either ≡ “identical to” or “soft hyphen)

0123456789
0
10
20§
30 !"#$%&'
40()*+,-./01
5023456789:;
60<=>?@ABCDE
70FGHIJKLMNO
80PQRSTUVWXY
90Z[\]^_`abc
0123456789
100defghijklm
110nopqrstuvw
120xyz{|}~Çü
130éâäàåçêëèï
140îìÄÅÉæÆôöò
150ûùÿÖÜ¢£¥ƒ
160áíóúñѪº¿
170¬½¼¡«»
180
190
0123456789
200
210
220αßΓπΣσ
230µτΦΘΩδφε
240±÷°
250·²
or
150 ø Ø×
160 ®
170
180 ÁÂÀ© ¢
190¥ ãÃ
0123456789
200 ¤ðÐ
210ÊËÈıÍÎÏ
220 ¦Ì Ó ÔÒõÕ
230 þÞÚÛÙýݯ´
240 ¾§ ¸ ¨
250 ¹³

 

Boxes to type or copy into

ArialTimesConsolas

 

Links

ASCII-codeASCII-code.com

CodeTableCodeTable.net - alt codes, ascii codes, entities in html, etc
 • Entities in HTML
 • Unicode Group ‘Geometric Shapes’
 • Unicode Group ‘Miscellaneous Symbols’

W3SchoolsW3Schools - web developer site
 • HTML Character Sets
 • HTML ASCII Reference
 • HTML Unicode (UTF-8) Reference

WikipediaAlt code in Windows
ASCII character set
Code page 850 character set (Alt+without leading zero)
Windows-1252 codepage layout (Alt+with leading zero)

Notepad++Extended Search Mode

JBM-Computing

part of J E Mynott Limited

web: www.Mynott.uk

site map / contentswebsite privacy
glossarycontact me
©2000-2025 JBM-Computing
Facebook Twitter YouTube print