FTP Explained: How Files Move Across the Internet

FTP explained in plain terms means the long-standing method computers use to copy files from one machine to another over a network. The central question is how a file on a distant server ends up on your computer intact, and the short answer is that the File Transfer Protocol sets up a connection, checks your login, and transfers the file in pieces, confirming each part as it goes.

Anyone who has run a website has probably met FTP. A designer finishes a page on their own computer, opens an FTP program, drags the file into a folder on the web server, and moments later the page is live. Behind that simple drag lies a protocol that has been moving files across networks since the early days of the internet.

FTP is one of the oldest protocols still in regular use, and its design shows it. It was built for a time when networks were trusted and simple, so it has strengths, such as straightforward file management, and weaknesses, such as sending login details in plain text, that modern alternatives have had to fix.

Key takeaways

  • FTP is the File Transfer Protocol, a standard for copying files between computers over a network.
  • It uses two connections: one for commands and logins, and a second for the actual file data.
  • A client program connects to an FTP server, logs in, and can upload, download, rename, and delete files.
  • Standard FTP sends usernames, passwords, and files unencrypted, so anyone on the path can read them.
  • Secure variants such as FTPS and SFTP add encryption, and most new projects should use one of them.

What FTP is

FTP stands for File Transfer Protocol, and it is a standard that defines how a client and a server exchange files over a network. The client is the program on your computer, such as FileZilla or a built-in command, and the server is the machine that stores the files and waits for connections. Once connected, the client can browse the server’s folders, download files to the local machine, or upload files to the server.

FTP is an application-layer protocol, which means it sits on top of the basic transport that moves data across the network, and it defines the commands and replies both sides use. Typical commands include logging in with a username and password, listing the contents of a folder, changing to a different folder, and starting a transfer. The server answers each command with a short numeric status code and a message, so the client always knows whether an action succeeded.

Unlike a web page download, FTP is a two-way tool. It is designed as much for uploading as for downloading, and it includes commands for renaming, deleting, and creating folders, so it works like a remote file manager. Our guide to HTTP explains the protocol browsers use to fetch web pages, which is one-way by comparison, and our guide to TLS explains the encryption layer that secure file transfer variants rely on.

How FTP works

An FTP session begins when the client opens a control connection to the server, by default on port 21, and the server asks for a username and password. Once the login succeeds, the client sends commands over this control connection, and the server replies with status codes. The control connection stays open for the whole session, carrying instructions but never the files themselves.

When a file transfer starts, a second connection is opened for the data. In active mode, the server connects back to the client to deliver the data, while in passive mode, the client opens the data connection to the server instead. Passive mode is now the usual choice, because firewalls and home routers often block incoming connections, and it lets the client initiate both connections, which passes through firewalls far more easily.

During the transfer, the file is sent as a stream of bytes, and the client writes it to disk as it arrives. FTP can transfer files in binary mode, which copies the bytes exactly, or in text mode, which converts line endings between systems. Binary mode is the safe default for almost everything, including images, documents, and archives, because text mode can corrupt a file that is not plain text.

When the transfer finishes, the data connection closes and the server sends a confirmation over the control connection. The client can then issue further commands, such as listing the folder to confirm the file arrived, or it can close the session by logging out. If a transfer is interrupted, many clients can resume it from where it stopped, rather than starting again from the beginning.

A laptop on a dark desk showing a file transfer window with a progress bar, lit by a green glow, the file names blurred
A laptop on a dark desk shows a file transfer window with a progress bar, lit by a green glow, a picture of the moment a file moves from one computer to another over the network.

Comparing FTP with modern file transfer

FTP still works, but newer methods have overtaken it for most purposes. The main differences are security, convenience, and how well each method fits into modern workflows, and the right choice usually depends on what is being moved and who can see the traffic.

The table below sets out the main contrasts.

Aspect FTP SFTP Cloud storage
Encryption None by default Built in, via SSH Built in, via HTTPS
Login security Passwords sent in plain text Passwords or keys, encrypted Account login, often with two-factor checks
Typical ports 21 for control, plus a data port 22, a single port 443, the usual web port
Ease of use Needs a dedicated client program Needs a client, or a command line Works in a browser or an app
Best for Simple server uploads Secure server administration Sharing files with other people
Firewall friendly Often awkward, two connections Yes, one connection Yes, standard web traffic

The practical distinction is risk. Standard FTP is acceptable on a trusted private network, but on the open internet its plain-text logins are an open invitation, so a secure variant or a cloud service is the safer default for anything that leaves a private network.

Where FTP is used

Website publishing is the classic use of FTP. A developer or designer uploads pages, images, and stylesheets to a web server, and updates them the same way when the site changes. Many hosting providers still offer FTP access alongside newer tools, because it is simple, widely supported, and easy to explain to someone managing a site for the first time.

Businesses use FTP, and its secure variants, to exchange files with partners and suppliers. A common pattern is a shared folder on a server where one company drops a data file each night and another picks it up in the morning, with the transfer scheduled to run automatically. This batch style of exchange suits FTP well, because it is built around whole files rather than live interaction.

Media and publishing teams move large files with FTP because it handles big uploads reliably and can resume an interrupted transfer. A video file, a print-ready document, or a photo archive can be many gigabytes, and FTP’s ability to pick up where it left off saves hours compared with starting over after a dropped connection.

FTP also survives in automation and legacy systems. Scripts and scheduled jobs use it to move log files, backups, and reports between servers, and older equipment, from printers to industrial controllers, often supports FTP and nothing newer. In those corners of the network, FTP endures because it is simple and everything already speaks it.

Strengths and limits

The greatest strength of FTP is its simplicity. The commands are few, the model of folders and files is familiar to anyone who has used a computer, and client programs exist for every major operating system, many of them free. For the straightforward job of putting a file on a server, FTP asks little of the user and rarely surprises them.

It is also reliable for its core task. Transfers can be resumed after an interruption, large files are handled without fuss, and the clear separation between the control connection and the data connection makes it easy to see what is happening when something goes wrong. That transparency is one reason system administrators have kept it around for so long.

The limits are dominated by security. Standard FTP sends usernames, passwords, and file contents without encryption, so anyone able to observe the traffic can read them, and it has no built-in way to confirm that a file arrived unaltered. Its two-connection design also struggles with modern firewalls, and it offers none of the sharing, versioning, or collaboration features that cloud storage provides.

FTP checklist

  • Use SFTP or FTPS instead of standard FTP whenever the transfer crosses the open internet.
  • Check that the client is set to binary mode before transferring images, archives, or documents.
  • Prefer passive mode, since it passes through home routers and firewalls far more easily.
  • Use a strong, unique password for the FTP account, and never reuse a password from elsewhere.
  • Confirm the file arrived by checking its size on the server after the transfer finishes.
  • Keep the client program updated, since old versions may have known security flaws.
  • Limit the FTP account to the folders it needs, rather than giving it access to the whole server.
  • Turn off anonymous FTP access unless there is a specific reason to allow it.
  • Move to a key-based login for SFTP when the same transfer runs regularly or automatically.

Frequently asked questions

What is FTP in simple terms?

FTP is a standard way for computers to copy files to and from each other over a network. You connect to a server with a client program, log in, and then upload or download files much as you would move them between folders.

Is FTP secure?

Standard FTP is not secure, because it sends usernames, passwords, and files without encryption. Anyone who can observe the network traffic can read them, so secure variants such as SFTP or FTPS should be used instead on untrusted networks.

What is the difference between FTP and SFTP?

SFTP is a different protocol that runs over SSH and encrypts both the login and the files, while standard FTP sends everything in plain text. Despite the similar name, SFTP is not simply FTP with encryption added; it is a separate, secure way of transferring files.

What is FTPS?

FTPS is standard FTP with a layer of TLS encryption added, which protects the login details and the file contents. It is one of the two common secure replacements for FTP, the other being SFTP.

Do I need special software to use FTP?

Usually, yes. A dedicated FTP client, such as FileZilla, gives the easiest experience, with a two-pane view of local and remote folders. Some operating systems also include a basic FTP command, and some file managers can connect to FTP servers directly.

Can I still use FTP for my website?

Yes, most web hosts still support FTP, and it remains a simple way to upload pages and images. For safety, choose the secure option your host offers, usually SFTP or FTPS, rather than plain FTP.

The bottom line

FTP explained in one line is this: a long-standing protocol that lets a client log into a server and copy files back and forth, using one connection for commands and another for the data itself.

It remains useful for simple uploads and legacy systems, but its lack of encryption makes plain FTP a poor choice on the open internet. For most purposes today, a secure variant such as SFTP or FTPS, or a cloud storage service, is the better default.

This article is general information about how FTP works, not advice about configuring a server or choosing a file transfer method for a particular organisation.

Latest articles

Scroll to Top