Installing Raspberry Pi OS with Raspberry Pi Imager
Use Raspberry Pi Imager to put Raspberry Pi OS on a microSD card or SSD, with your hostname, user, Wi-Fi and SSH set up before the Pi first starts.
Before you start
Raspberry Pi Imager is the free, official tool for writing an operating system onto a Pi's storage. You'll need a computer (Windows, macOS or Linux) with a card slot or USB card reader, a microSD card (32 GB suits most projects) and an internet connection.
If your card came with Raspberry Pi OS already on it, skip straight to first boot.
Writing a card erases everything on it. Double-check you've picked the right drive before you click Write.
1. Install Imager
- Windows and macOS: download the installer from Raspberry Pi's software page and install it like any other app.
- Raspberry Pi OS: open a terminal and run:
sudo apt install rpi-imager
- Other Linux: download the AppImage from the same page, mark it as executable, then run it.
2. Choose your device
Put the card in your computer and open Imager. On the Device tab, pick the Raspberry Pi model you're setting up, then click Next. This filters the OS list down to what runs on that board.
3. Choose the operating system
On the OS tab, the recommended Raspberry Pi OS for your board sits at the top of the list, and suits most people. Other options include:
- Raspberry Pi OS (other): the Lite version with no desktop (good for servers and headless projects) and the full version with extra software;
- other operating systems, grouped by use (media players, emulation and games, and more);
- Use Custom, for an image file you've already downloaded.
4. Choose the storage
On the Storage tab, pick your microSD card. Leave Exclude system drives ticked so your computer's own disk can't be chosen. If you're unsure which entry is the card, unplug any other USB drives and go by the size.
5. Customise it (recommended)
For Raspberry Pi OS, Imager now offers to set the Pi up in advance. You can skip this, but then the Pi will ask the same questions at first boot, and you'll need a screen and keyboard to answer them. For a headless Pi, fill it in.
| Setting | What to enter |
|---|---|
| Hostname | A name for the Pi on your network, using letters, numbers and hyphens only. You can then reach it as <hostname>.local. |
| Localisation | Choose a capital city (Canberra for Australia). Imager fills in the time zone and keyboard layout, which you can still change, and sets the Wi-Fi country. |
| User | A username in lower case (letters, numbers, hyphens and underscores) and a password. You'll need this password for sudo. |
| Wi-Fi | Your network name (SSID) and password. Imager often fills in the network your computer is on. Turn on Hidden SSID if your network doesn't broadcast its name. |
| Remote access | Turn on Enable SSH and choose password login or public-key login. Imager can use an existing key on your computer, or you can paste one in. |
| Raspberry Pi Connect | Optional. Turn it on to reach the Pi from a browser anywhere (see our remote access guide). |
To set up Raspberry Pi Connect here, click Open Raspberry Pi Connect, sign in with (or create) a Raspberry Pi ID, and create an auth key. Your browser hands the key back to Imager. The key is single-use and short-lived, so boot the Pi and get it online soon after writing the card.
6. Write the card
- Check the summary on the Writing tab, then click Write.
- Confirm with I understand, erase and write, and allow any admin prompt your computer shows.
- Imager writes the image, then reads it back to verify it. Each part takes a few minutes. You can skip the check, but it's worth the wait.
- When the Done tab appears, click Finish and take the card out.
Installing to an SSD
To run a Raspberry Pi 5 from an NVMe SSD on an M.2 HAT, the easiest route is:
- Write Raspberry Pi OS to a microSD card as above and boot the Pi from it.
- Install Imager on the Pi (
sudo apt install rpi-imager) and run it. - Choose the NVMe drive on the Storage tab and write it as normal.
- Shut down, take out the microSD card and power on again.
With no card in, a Pi 5 boots from the NVMe drive by itself. If you'd rather leave the card in, run sudo raspi-config and choose Advanced Options > Boot Order > NVMe/USB boot, then reboot.
A Pi 4, 5, 400 or 500 with an up-to-date bootloader can also download Imager and run it on itself, with no other computer needed (Network Install). Connect a monitor, keyboard, Ethernet cable and the blank card or drive, then power it on. If the drive already has an operating system on it, hold Shift while it starts.
First boot
Put the card in the Pi and connect the power. The first start can take a little longer than usual.
- If you customised the card, the Pi skips the setup questions and joins your network. On another computer, connect with:
ssh yourusername@yourhostname.local
- If you skipped customisation, a setup wizard asks for your country, a username and password, Wi-Fi and a web browser, then offers to install updates (allow up to half an hour).
If nothing happens after five minutes, look at the Pi's status LED: a repeating pattern of flashes is an error code.
You can change any of these settings later from Preferences > Control Centre on the desktop, or with sudo raspi-config in a terminal.
Parts in this guide
Pi Australia
32GB MicroSD card with latest Raspberry Pi OS
Raspberry Pi
Raspberry Pi A2-Class microSD Card, 32GB, Blank
Pi Australia
64GB uSD Card for Raspberry Pi
Pi Australia
USB MicroSD Card Reader
Raspberry Pi