In this guide, you’ll learn how to transfer files remotely from your computer to a Raspberry Pi and vice-versa. We’ll be using FileZilla FTP (File Transfer Protocol) Client to establish a remote connection over the internet to transfer files between your Windows PC and a Raspberry Pi.
We have a similar guide for Mac OS computer: Transfer Files to and from Raspberry Pi using FileZilla FTP
Prerequisites
Before proceeding, make sure you check the following prerequisites.
- You need a Raspberry Pi board.
- Operating System: you should have a Raspberry Pi running Raspberry Pi OS (32-bit or 64-bit).
- SSH: You should be able to establish an SSH connection with your Raspberry Pi.
Downloading FileZilla
The FileZilla Client is an open-source cross-platform software that supports FTP, FTPS, and SFTP. It can be installed on a Windows PC or on Mac OS/Linux computers. In this guide, we’ll show you how to install FileZilla on Windows.
Let’s download the software and install it. Go to the official website and download it by clicking the “Download FileZilla Client” button.
Choose the Free version in the left option highlighted below, it has all the features needed.
Once the FileZilla Client installation file has been downloaded, open the .exe file and complete the installation steps.
Finally, after installing FileZilla software, open it.
Get Raspberry Pi Address
Having an SSH connection established with your Raspberry Pi, run the following command to get the Raspberry Pi IP address:
hostname -I
Save your Raspberry IP Address, because you’ll need it in the next step to establish the FTP connection.
Establish an FTP / SFTP Connection with Your Raspberry Pi
Now it’s time to establish an FTP connection with your Raspberry Pi. In the FileZilla top bar, enter your Raspberry Pi details:
- Host: <RPi IP Address or Hostname> (in our case, the IP address is 192.168.1.79)
- Username: <RPi username>
- Password: <RPi password>
- Port: 22 (default port is 22)
Once you’ve entered the required configuration settings, press the “Quickconnect” button.
Then, click the OK button and the connection should be established instantly.
Once the FTP connection is established, in the “Remote site” window (highlighted in the picture below) allows you to browse your Raspberry Pi directories and access all its files.
Download Files from Raspberry Pi to Windows PC
You can quickly download any files or folders from your Raspberry Pi.
- Browse the Raspberry Pi folders using the “Remote site” section.
- Do a right-click on your mouse to open the options menu.
- Click the “Download” button to download the desired file.
You can also edit the file, create a new directory, create new files, delete files, rename files, and much more.
Once the file has been downloaded, open the “Successful transfers” tab (at the bottom left corner) to find the location where the file was saved on your Windows PC.
Transfer Files from Windows PC to Raspberry Pi
You can also transfer/upload any files or folders from your Windows PC to the Raspberry Pi.
Find the file or folder that you want to transfer to your Raspberry Pi and drag it to the “Remote site” window on FileZilla to the desired folder location.
Once the file has been uploaded to your RPi, in the bottom left corner you can open the “Successful transfers” to see if the process has been completed.
Wrapping Up
When using a Raspberry Pi, sometimes you want to transfer files to the Raspberry Pi or download existing files remotely. Having FileZilla installed makes it very easy to accomplish this task.
We have other practical Raspberry Pi tutorials that you may find useful:
- Raspberry Pi: Set Up Remote Desktop Connection (RDP) – Windows PC
- Programming Raspberry Pi Remotely using VS Code (Remote-SSH)
- Getting Started with Node-RED on Raspberry Pi
You can find all our Raspberry Pi Projects on the following link:
Another good article.
An alike software I have been using for years is WinSCP.
No need to install, both apps have a portable version
Good article!!