How To Set Up A Raspberry Pi With Raspberry Pi Imager (2027)
Quick answer
- Install Raspberry Pi Imager on a computer with a card reader, then choose your Raspberry Pi model on the Device tab, an OS on the OS tab and the microSD card on the Storage tab, and select Write.
- Use the Customisation tab to set the hostname, user name, password, Wi-Fi and SSH before writing, or select Skip customisation and use the setup wizard on first boot.
- The Pi will not start until an image has been written to its storage, and writing erases the card, so back up first and keep Exclude system drives selected.
Applies to: Raspberry Pi Imager on Windows, macOS and Linux; Raspberry Pi OS
Raspberry Pi Imager is the tool the Raspberry Pi documentation recommends for putting an operating system on a microSD card.
A Raspberry Pi will not start until an OS image has been written to its boot media, so this is the first job for every new board.
This guide follows the official Imager and getting-started pages and covers the download, each Imager tab, the customisation fields, first boot and the usual reasons a Pi stays dark.
Table of Contents
Quick answer: set up a Raspberry Pi with Imager
| Step | What to do |
|---|---|
| 1 | Download Raspberry Pi Imager from raspberrypi.com/software and install it on a computer with an SD card reader. |
| 2 | Insert the microSD card and open Raspberry Pi Imager. |
| 3 | Choose your Device, the OS and the Storage, selecting Next on each tab. |
| 4 | Fill in the Customisation tab (hostname, user, Wi-Fi, SSH) or select Skip customisation. |
| 5 | Select Write, confirm with I understand, erase and write, wait for verification and select Finish. |
| 6 | Put the card in the Pi with the label facing away from the board, then connect power. |
What you need first
Raspberry Pi says to prepare the boot media before you assemble the Pi, unless you use a network install on a Raspberry Pi 4B, 5, 500 or 500+.
| Operating system | Recommended minimum card size |
|---|---|
| Raspberry Pi OS (desktop) | 32 GB |
| Raspberry Pi OS Full | 32 GB |
| Raspberry Pi OS Lite | 8 GB |
Cards must be under 2 TB, because larger ones exceed the Master Boot Record limit.
A desktop setup also needs a keyboard, a mouse and a display.
Install Raspberry Pi Imager
Download Imager from the Raspberry Pi software page, which offers builds for Windows, macOS and Linux.
| Computer | How to install |
|---|---|
| Windows | Run the downloaded installer and follow the prompts, then open Raspberry Pi Imager from the Start menu or desktop shortcut. |
| macOS | Open the downloaded .dmg file and drag Raspberry Pi Imager into Applications. |
| Raspberry Pi OS | Install it with the apt command below, then open it from the Accessories menu. |
| Raspberry Pi OS Lite | Install rpi-imager-cli instead, which has no graphical window and cannot be installed alongside rpi-imager. |
| Other Linux | Download the AppImage, make it executable with chmod +x and run it with sudo. |
On Raspberry Pi OS, run this in a terminal.
This installs the graphical Imager.
Write Raspberry Pi OS to the card
Imager works through five tabs named Device, OS, Storage, Customisation and Writing.
- On the Device tab, select your Raspberry Pi model and select Next, which filters the OS list to match.
- On the OS tab, choose an operating system and select Next, noting that the recommended OS sits at the top of the list.
- On the Storage tab, connect the card, select it and select Next, using the size to be sure you picked the right device.
- Keep Exclude system drives selected so Imager cannot erase the drive your computer runs from.
- On the Customisation tab, set your options or select Skip customisation.
- On the Writing tab, review the summary and select Write.
- Confirm with I understand, erase and write and grant your computer permission to write if it asks.
Writing erases everything on the target device, so back up anything you want to keep first.
Imager then verifies the card, which Raspberry Pi recommends, although you can select Skip verification, and you select Finish when it is done.
Customisation settings
The Customisation tab appears only for supported operating systems, and Imager saves your choices for next time.
| Setting | What Imager asks for |
|---|---|
| Hostname | Letters, numbers and hyphens only, and the Pi is then reachable as hostname.local, or hostname.lan if your router supports it. |
| User | A lowercase user name using letters, numbers, underscores or hyphens, plus a password entered twice. |
| Wi-Fi | Secure or open network, the SSID and password, and Hidden SSID if needed. |
| Remote access | Enable SSH, then password or public key authentication, with Import from GitHub available for keys. |
| Raspberry Pi Connect | Enable Raspberry Pi Connect, then Open Raspberry Pi Connect to create an auth key. |
Personal Raspberry Pi Connect keys expire six hours after you create them, so boot the Pi and connect it to the internet before then.
Insert the card and power on
Insert the microSD card with its label facing away from the Pi.
On the Pi 3 and later and on all Zero models the card slides in without a click, while older models need the card pushed in first to unlock it.
Connect the power supply to the port labelled POWER IN, PWR IN or PWR, and on Zero models do not use the USB port that has the same shape.
A status LED lights, and if a monitor is connected a boot screen with the Raspberry Pi logo appears, which can take a few minutes.
The setup wizard on desktop
If you skipped customisation, or used a pre-installed OS, the desktop shows a setup wizard where you press Tab to move around and select Next in the bottom-right corner.
The wizard asks for your country, language and time zone, a user name and password, an optional Wi-Fi network and a default browser, Chromium or Firefox.
If the Pi has internet access, the wizard then updates the OS, which can take up to half an hour.
Set up a Pi without a screen
For a headless Pi, Raspberry Pi recommends Raspberry Pi OS Lite and says the only remote options on first boot are SSH or Raspberry Pi Connect.
Wi-Fi details you entered in Imager connect automatically, and otherwise you can use wired Ethernet.
If you skipped customisation, you can set up SSH by hand by creating an empty file named ssh and a file named userconf.txt on the bootfs partition.
The userconf.txt file holds one line in the form user name, a colon and an encrypted password, which you generate with this command, using OpenSSL rather than the default LibreSSL on a Mac.
This prints the encrypted password to paste into the file.
Raspberry Pi also notes that the wpa_supplicant.conf file is no longer supported from Raspberry Pi OS Bookworm onward, so enter Wi-Fi details in Imager instead.
If the Pi will not start or behave
| Problem | What Raspberry Pi says |
|---|---|
| The Pi will not start at all | The OS image must be written to the storage before you power on. |
| A Pi Zero reboots | Plugging in USB devices after boot can drop the voltage enough to reset the CPU, so use a powered USB hub or connect devices before booting. |
| No power for keyboard and mouse on a Zero | Zero models cannot power both, so use a powered USB hub. |
| VNC does not work | VNC is incompatible with the Lite versions of Raspberry Pi OS. |
| Wi-Fi will not connect | Some adapters and models do not support 5 GHz, so check your model. |
| A Pi 5 stays off | The EEPROM may be set to wait for the power button. |
| No picture on the display | Use the HDMI0 port for your main monitor, check the monitor is on the right HDMI input, and note that no USB-C port supports video output. |
If your computer will not flash cards cleanly with another tool, our balenaEtcher flash failed guide covers that tool, and our AdGuard Home vs Pi-hole comparison helps if you plan a network-wide ad blocker.