Commodore 64 PETSCII codes

(with key combinations)
PETSCII code
(dec, hex)
Character
(up/gfx, lo/up)
Key combinationPETSCII code
(dec, hex)
Character
(up/gfx, lo/up)
Key combination
0$00 Ctrl-@ (at)128$80  
1$01 Ctrl-A129$81orangeC=-1
2$02 Ctrl-B130$82  
3$03StopRun/Stop, Ctrl-C131$83RunShift-Run/Stop
4$04 Ctrl-D132$84  
5$05whiteCtrl-2, Ctrl-E133$85F1F1/F2
6$06 Ctrl-F134$86F3F3/F4
7$07 Ctrl-G135$87F5F5/F6
8$08disable C=-ShiftCtrl-H136$88F7F7/F8
9$09enable C=-ShiftCtrl-I137$89F2Shift-F1/F2
10$0A Ctrl-J138$8AF4Shift-F3/F4
11$0B Ctrl-K139$8BF6Shift-F5/F6
12$0C Ctrl-L140$8CF8Shift-F7/F8
13$0DReturnReturn, Ctrl-M141$8DShift-ReturnShift-Return
14$0Elo/up charsetCtrl-N142$8Eup/gfx charset 
15$0F Ctrl-O143$8F  
16$10 Ctrl-P144$90blackCtrl-1
17$11cursor downcursor up/down, Ctrl-Q145$91cursor upShift-cursor up/down
18$12reverse onCtrl-9, Ctrl-R146$92reverse offCtrl-0
19$13HomeClear/Home, Ctrl-S147$93ClearShift-Clear/Home
20$14DeleteInsert/Delete, Ctrl-T148$94InsertShift-Insert/Delete
21$15 Ctrl-U149$95brownC=-2
22$16 Ctrl-V150$96pinkC=-3
23$17 Ctrl-W151$97dark greyC=-4
24$18 Ctrl-X152$98greyC=-5
25$19 Ctrl-Y153$99light greenC=-6
26$1A Ctrl-Z154$9Alight blueC=-7
27$1B Ctrl-: (colon)155$9Blight greyC=-8
28$1CredCtrl-3, Ctrl-£ (pound)156$9CpurpleCtrl-5
29$1Dcursor rightcursor left/right, Ctrl-; (semicolon)157$9Dcursor leftShift-cursor left/right
30$1EgreenCtrl-6, Ctrl-↑ (up arrow)158$9EyellowCtrl-8
31$1FblueCtrl-7, Ctrl-= (equal)159$9FcyanCtrl-4
32$20SpaceSpace160$A0Shift-SpaceShift-Space
33$21!Shift-1161$A1C=-K
34$22"Shift-2162$A2C=-I
35$23#Shift-3163$A3C=-T
36$24$Shift-4164$A4C=-@ (at)
37$25%Shift-5165$A5C=-G
38$26&Shift-6166$A6C=-+ (plus)
39$27'Shift-7167$A7C=-M
40$28(Shift-8168$A8C=-£ (pound)
41$29)Shift-9169$A9Shift-£ (pound)
42$2A** (asterisk)170$AAC=-N
43$2B++ (plus)171$ABC=-Q
44$2C,, (comma)172$ACC=-D
45$2D-– (minus)173$ADC=-Z
46$2E.. (period)174$AEC=-S
47$2F// (slash)175$AFC=-P
48$3000176$B0C=-A
49$3111177$B1C=-E
50$3222178$B2C=-R
51$3333179$B3C=-W
52$3444180$B4C=-H
53$3555181$B5C=-J
54$3666182$B6C=-L
55$3777183$B7C=-Y
56$3888184$B8C=-U
57$3999185$B9C=-O
58$3A:: (colon)186$BAShift-@ (at)
59$3B;; (semicolon)187$BBC=-F
60$3C<Shift-, (comma)188$BCC=-C
61$3D== (equal)189$BDC=-X
62$3E>Shift-. (period)190$BEC=-V
63$3F?Shift-/ (slash)191$BFC=-B
64$40@@ (at)192$C0Shift-* (asterisk)
65$41AaA193$C1AShift-A
66$42BbB194$C2BShift-B
67$43CcC195$C3CShift-C
68$44DdD196$C4DShift-D
69$45EeE197$C5EShift-E
70$46FfF198$C6FShift-F
71$47GgG199$C7GShift-G
72$48HhH200$C8HShift-H
73$49IiI201$C9IShift-I
74$4AJjJ202$CAJShift-J
75$4BKkK203$CBKShift-K
76$4CLlL204$CCLShift-L
77$4DMmM205$CDMShift-M
78$4ENnN206$CENShift-N
79$4FOoO207$CFOShift-O
80$50PpP208$D0PShift-P
81$51QqQ209$D1QShift-Q
82$52RrR210$D2RShift-R
83$53SsS211$D3SShift-S
84$54TtT212$D4TShift-T
85$55UuU213$D5UShift-U
86$56VvV214$D6VShift-V
87$57WwW215$D7WShift-W
88$58XxX216$D8XShift-X
89$59YyY217$D9YShift-Y
90$5AZzZ218$DAZShift-Z
91$5B[Shift-: (colon)219$DBShift-+ (plus)
92$5Cpound£ (pound)220$DCC=-– (minus)
93$5D]Shift-; (semicolon)221$DDShift-– (minus)
94$5Eup arrow↑ (up arrow)222$DEShift-↑ (up arrow)
95$5Fleft arrow← (left arrow)223$DFC=-* (asterisk)
96$60 224$E0 
97$61 225$E1 
98$62 226$E2 
99$63 227$E3 
100$64 228$E4 
101$65 229$E5 
102$66 230$E6 
103$67 231$E7 
104$68 232$E8 
105$69 233$E9 
106$6A 234$EA 
107$6B 235$EB 
108$6C 236$EC 
109$6D 237$ED 
110$6E 238$EE 
111$6F 239$EF 
112$70 240$F0 
113$71 241$F1 
114$72 242$F2 
115$73 243$F3 
116$74 244$F4 
117$75 245$F5 
118$76 246$F6 
119$77 247$F7 
120$78 248$F8 
121$79 249$F9 
122$7A 250$FA 
123$7B 251$FB 
124$7C 252$FC 
125$7D 253$FD 
126$7E 254$FE 
127$7F 255$FF 

Notes:

  1. Codes $00-$1F and $80-$9F are control codes. Printing them will cause a change in screen layout or behavior, not an actual character displayed.

  2. Codes $60-$7F and $E0-$FE are not used. Although you can print them, these are, actually, copies of codes $C0-$DF and $A0-$BE.

  3. Code $FF is the BASIC token of the π (pi) symbol. It is converted internally to code $DE when printed and, vice versa, code $DE is converted to $FF when fetched from the screen. However, when reading the keyboard buffer, you will find code $DE for Shift-↑ (up arrow) as no conversion takes place there yet.