To install Raspberry Pi OS, download Raspberry Pi Imager on a computer, pick your Raspberry Pi model, choose Raspberry Pi OS, select your microSD card (or SSD) and write it. Imager can also preset your username, Wi-Fi and SSH, so the Pi is ready to use the first time it starts.
This guide covers the standard method with Imager, which works on Windows, macOS and Linux and is the method Raspberry Pi recommends. It applies to current Raspberry Pi OS releases (Bookworm and the newer Trixie-based release) and to Raspberry Pi Imager 2.x.
What you need
- A Raspberry Pi and a suitable power supply. For Raspberry Pi 5, use a 5V 5A USB-C supply such as the Raspberry Pi 27W USB-C Power Supply. The Vilros Raspberry Pi 5 Complete Starter Kit includes the board, power and other parts in one box.
- A microSD card, 32GB or larger. If you would rather skip this guide, a microSD card preloaded with Raspberry Pi OS (64-bit) is ready to boot.
- A card reader for your computer, such as the Micro SD Card to USB Adapter.
- A display cable for first boot if you are not setting up headless (Pi 4 and Pi 5 use micro HDMI; see the Vilros micro HDMI to HDMI cable).
- An internet connection on the computer, because Imager downloads the OS as it writes.
Vilros is an official Raspberry Pi Approved Reseller in the US. Orders ship the next business day from New Jersey.
Which version should I choose?
- Raspberry Pi OS (64-bit) is the recommended choice for Raspberry Pi 5, 4, 400, 500 and Zero 2 W. Imager lists it first when you pick one of these models.
- Raspberry Pi OS Lite has no desktop. Choose it for servers and projects you run over SSH, such as Pi-hole.
- Raspberry Pi OS (32-bit) is for older boards (Pi 1, Pi 2, Zero) and for software that only runs on 32-bit.
- Legacy images are based on the previous Debian release. Use them only if a project's instructions require it.
Step-by-step: install Raspberry Pi OS with Imager
- Install Raspberry Pi Imager. Download it from raspberrypi.com/software and install it. On a computer already running Raspberry Pi OS or Ubuntu, run
sudo apt install rpi-imager. - Insert your microSD card into the computer's card reader. Back up anything on it: the card will be erased.
- Open Imager and choose your device. In the Device tab, select your Raspberry Pi model and select Next. Imager filters the OS list so it only shows compatible systems.
- Choose the operating system. In the OS tab, select Raspberry Pi OS (64-bit) for most boards, or open Raspberry Pi OS (other) for Lite and 32-bit versions. Select Next.
- Choose the storage. In the Storage tab, select your microSD card. Leave Exclude system drives turned on so you cannot erase your computer's own disk by mistake. Check the size matches your card.
Customise (recommended). In the Customisation tab:
- Hostname: a name for the Pi on your network, for example
pi5-desk. - Localisation: choose your capital city. This sets time zone, keyboard layout and the Wi-Fi country.
- User: a lowercase username and a strong password. You need this password for
sudocommands. - Wi-Fi: your network name and password. Required for a headless setup without Ethernet.
- Remote access: turn on SSH if you want to log in from another computer, with password or public-key authentication. Raspberry Pi Connect can also be set up here.
Select Skip customisation if you would rather answer these questions on the Pi at first boot.
- Hostname: a name for the Pi on your network, for example
- Write the image. In the Writing tab, review the summary, select Write, then confirm the warning that all data will be erased. Your computer may ask for permission.
- Let verification finish. Imager writes the image and then checks it. This can take several minutes. When the Done tab appears, select Finish and eject the card.
- Boot the Pi. Insert the card into the Pi, connect display, keyboard and mouse (or just power, for headless), and connect power last.
Complete first boot. If you skipped customisation, a setup wizard asks for country, user account and Wi-Fi. Then open Terminal and update:
sudo apt update sudo apt full-upgrade
Install over the network (no computer needed)
Raspberry Pi 5, Pi 4 and Pi 400 with an up-to-date bootloader can run Imager directly from the internet. Connect the Pi to your router with Ethernet, insert a blank card (or connect an SSD), power on with no bootable media and hold the Shift key when prompted. Imager downloads and runs on the Pi itself, and you follow the same steps as above.
Install on an SSD instead of a microSD card
Imager writes to an SSD the same way. Connect the drive to your computer (or to the Pi, if you are running Imager on the Pi) and select it in the Storage tab. On Raspberry Pi 5 with an M.2 HAT+, see our guide on booting Raspberry Pi 5 from an SSD.
Troubleshooting
- Imager does not list my card. Try another USB port or reader, and make sure the card is not locked (full-size SD adapters have a lock switch). If it still does not show, turn off Exclude system drives only after checking you have the right device.
- Write or verify fails. The card or reader is often the cause. Try another card; cheap or counterfeit cards fail verification regularly.
- The Pi will not boot. Confirm you chose the right Device in Imager. A 32-bit image for an older model may not boot on a Pi 5. Re-write the card and let verification finish.
- I cannot log in over SSH. Check SSH was enabled in Customisation, that the Pi and your computer are on the same network, and try
ssh username@hostname.local. If.localnames do not resolve, use the Pi's IP address from your router. - Wrong keyboard layout or Wi-Fi will not connect. The city you chose in Localisation sets both. Re-write with the right city, or change it in the Raspberry Pi Configuration tool.
FAQ
Is Raspberry Pi OS free?
Yes. Raspberry Pi OS and Raspberry Pi Imager are free to download from raspberrypi.com.
What is the difference between Raspberry Pi OS and Raspbian?
Raspbian was the old name. The system was renamed Raspberry Pi OS in 2020. It is based on Debian Linux.
Can I install Raspberry Pi OS without another computer?
Yes, on Raspberry Pi 5, Pi 4 and Pi 400 you can use network install over Ethernet, or buy a card that comes preloaded.
How do I upgrade to a new major version of Raspberry Pi OS?
Raspberry Pi recommends a fresh install for a new major release rather than an in-place upgrade. Back up your files, write the new version with Imager, then copy your files back.
Shop this tutorial
CartAlso useful
Micro SD Card - Pre-Loaded with Raspberry Pi OS (64 bit)32GB$21.99
Micro SD Card to USB Adapter$6.99
Vilros Raspberry Pi 5 Complete Starter Kit2GB / Aluminum Alloy W/ Passive+Active Cooling$177.49
Raspberry Pi 27W USB-C Power Supply For Raspberry Pi 5Black$14.46
Vilros Micro-HDMI To Standard HDMI Cable - Designed For Raspberry Pi 4/51 FT / Black$6.99
Prices from vilros.com. Tax and shipping at checkout.