Commodore 64 PETSCII codes

This page uses inline images for faster display. See the original with linked images.

PETSCII code
(dec, hex)
Character
(up/gfx, lo/up)
PETSCII code
(dec, hex)
Character
(up/gfx, lo/up)
PETSCII code
(dec, hex)
Character
(up/gfx, lo/up)
PETSCII code
(dec, hex)
Character
(up/gfx, lo/up)
0$00 64$40@128$80 192$C0$C0
1$01 65$41Aa129$81orange193$C1$C1A
2$02 66$42Bb130$82 194$C2$C2B
3$03Stop67$43Cc131$83Run195$C3$C3C
4$04 68$44Dd132$84 196$C4$C4D
5$05white69$45Ee133$85F1197$C5$C5E
6$06 70$46Ff134$86F3198$C6$C6F
7$07 71$47Gg135$87F5199$C7$C7G
8$08disable C=-Shift72$48Hh136$88F7200$C8$C8H
9$09enable C=-Shift73$49Ii137$89F2201$C9$C9I
10$0A 74$4AJj138$8AF4202$CA$CAJ
11$0B 75$4BKk139$8BF6203$CB$CBK
12$0C 76$4CLl140$8CF8204$CC$CCL
13$0DReturn77$4DMm141$8DShift-Return205$CD$CDM
14$0Elo/up charset78$4ENn142$8Eup/gfx charset206$CE$CEN
15$0F 79$4FOo143$8F 207$CF$CFO
16$10 80$50Pp144$90black208$D0$D0P
17$11cursor down81$51Qq145$91cursor up209$D1$D1Q
18$12reverse on82$52Rr146$92reverse off210$D2$D2R
19$13Home83$53Ss147$93Clear211$D3$D3S
20$14Delete84$54Tt148$94Insert212$D4$D4T
21$15 85$55Uu149$95brown213$D5$D5U
22$16 86$56Vv150$96pink214$D6$D6V
23$17 87$57Ww151$97dark grey215$D7$D7W
24$18 88$58Xx152$98grey216$D8$D8X
25$19 89$59Yy153$99light green217$D9$D9Y
26$1A 90$5AZz154$9Alight blue218$DA$DAZ
27$1B 91$5B[155$9Blight grey219$DB$DB
28$1Cred92$5Cpound156$9Cpurple220$DC$DC
29$1Dcursor right93$5D]157$9Dcursor left221$DD$DD
30$1Egreen94$5Eup arrow158$9Eyellow222$DE$DE$DE
31$1Fblue95$5Fleft arrow159$9Fcyan223$DF$DF$DF
32$20Space96$60$C0160$A0Shift-Space224$E0$A0
33$21!97$61$C1$41161$A1$A1225$E1$A1
34$22"98$62$C2$42162$A2$A2226$E2$A2
35$23#99$63$C3$43163$A3$A3227$E3$A3
36$24$100$64$C4$44164$A4$A4228$E4$A4
37$25%101$65$C5$45165$A5$A5229$E5$A5
38$26&102$66$C6$46166$A6$A6230$E6$A6
39$27'103$67$C7$47167$A7$A7231$E7$A7
40$28(104$68$C8$48168$A8$A8232$E8$A8
41$29)105$69$C9$49169$A9$A9$A9233$E9$A9$A9
42$2A*106$6A$CA$4A170$AA$AA234$EA$AA
43$2B+107$6B$CB$4B171$AB$AB235$EB$AB
44$2C,108$6C$CC$4C172$AC$AC236$EC$AC
45$2D-109$6D$CD$4D173$AD$AD237$ED$AD
46$2E.110$6E$CE$4E174$AE$AE238$EE$AE
47$2F/111$6F$CF$4F175$AF$AF239$EF$AF
48$300112$70$D0$50176$B0$B0240$F0$B0
49$311113$71$D1$51177$B1$B1241$F1$B1
50$322114$72$D2$52178$B2$B2242$F2$B2
51$333115$73$D3$53179$B3$B3243$F3$B3
52$344116$74$D4$54180$B4$B4244$F4$B4
53$355117$75$D5$55181$B5$B5245$F5$B5
54$366118$76$D6$56182$B6$B6246$F6$B6
55$377119$77$D7$57183$B7$B7247$F7$B7
56$388120$78$D8$58184$B8$B8248$F8$B8
57$399121$79$D9$59185$B9$B9249$F9$B9
58$3A:122$7A$DA$5A186$BA$BA$BA250$FA$BA$BA
59$3B;123$7B$DB187$BB$BB251$FB$BB
60$3C<124$7C$DC188$BC$BC252$FC$BC
61$3D=125$7D$DD189$BD$BD253$FD$BD
62$3E>126$7E$DE$DE190$BE$BE254$FE$BE
63$3F?127$7F$DF$DF191$BF$BF255$FF$DE$DE

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.