Which Pi Do I Have? Includes Pi 4

With the introduction of the Pi4 board featuring multiple memory options, it's very useful to be able to identify exactly which model of Pi board you have. Here are two methods to identify your Pi:

  1. Use the revision code, which provides the model, revision, RAM, and manufacturer. This applies to all models.
  2. For Pi 4 boards, use the memory codes below to identify which memory variant you have visually.

Accessing Revision Codes

Each distinct Raspberry Pi model revision has a unique revision code. You can look up a Raspberry Pi's revision code by running:

cat /proc/cpuinfo

The last three lines show the hardware type, the revision code, and the Pi's unique serial number. For example:

Hardware    : BCM2835 
Revision    : a02082 
Serial      : 00000000765fc593

Note: With the previous kernel 4.9 (this is fixed in kernel 5.4), all Pis report  BCM2835, even those with BCM2836, BCM2837 and BCM2711 processors. You should not use this string to detect the processor on the older kernel 4.9.

 Here is a list of current 'new style' revision codes. For revision codes not listed here, see the full list at Raspberry Pi.org.

CodeModelRevisionRAMManufacturer
900021A+1.1512MBSony UK
900032B+1.2512MBSony UK
900092Zero1.2512MBSony UK
900093Zero1.3512MBSony UK
9000c1Zero W1.1512MBSony UK
9020e03A+1.0512MBSony UK
920092Zero1.2512MBEmbest
920093Zero1.3512MBEmbest
900061CM1.1512MBSony UK
a010402B1.01GBSony UK
a010412B1.11GBSony UK
a020823B1.21GBSony UK
a020a0CM31.01GBSony UK
a020d33B+1.31GBSony UK
a020422B (with BCM2837)1.21GBSony UK
a210412B1.11GBEmbest
a220422B (with BCM2837)1.21GBEmbest
a220823B1.21GBEmbest
a220a0CM31.01GBEmbest
a320823B1.21GBSony Japan
a520823B1.21GBStadium
a220833B1.31GBEmbest
a02100CM3+1.01GBSony UK
a031114B1.11GBSony UK
b031114B1.12GBSony UK
c031114B1.14GBSony UK
c031124B1.24GBSony UK
d031144B

1.48GBSony UK

Pi 4 Memory Module Markings

Additionally, for Pi 4 boards that cannot be powered on, the memory module is labelled as follows:

CodeSize (Bytes)Size (bits)
K4F8E30 4HBMGCJ1GB8Gb
Ending in D9WHZ2GB16Gb
Ending in D9WHV4GB32Gb
Ending in D9ZCL8GB64Gb

Source: Raspberry Pi revision codes
Source: In-house information