What Is FTP?

Category: FTP & File Management ยท Updated 2026-11-12

FTP, short for File Transfer Protocol, is a long-standing standard for uploading and downloading files between a computer and a server over a network. It uses a separate control connection to issue commands and a data connection to actually move files. Plain FTP sends everything, including the login password, without encryption, which is why most hosts now recommend SFTP or FTPS instead.

What FTP is used for

FTP lets a user transfer files to and from a server: uploading a website's files after building them locally, downloading a backup, or moving log files off a server. It was designed in an era before encryption was standard on the internet, and that design has not changed even though the security landscape has.

How an FTP connection works

  1. The client connects to the server's control port, port 21, and logs in with a username and password.
  2. The client sends commands over that control connection, such as listing a directory or requesting a file.
  3. A separate data connection opens to actually transfer the file content, using either active mode or passive mode to decide which side opens it.
  4. The data connection closes once the transfer finishes, while the control connection can stay open for more commands.

This two-connection design is also why FTP can be tricky behind firewalls: the control and data channels use different ports, and passive mode is usually needed to make that work reliably through NAT.

FTP, FTPS and SFTP

ProtocolEncryptionTypical port
FTPNone21
FTPSFTP wrapped in TLS21 or 990
SFTPBuilt on the SSH protocol22

SFTP is not FTP with encryption bolted on; it is a different protocol entirely that happens to share a similar purpose, which is why an SFTP client cannot talk to a plain FTP server and vice versa.

A basic FTP session from the command line

ftp example.com
Name: myusername
Password: ********
ftp> cd public_html
ftp> put index.html
ftp> get error_log
ftp> bye

Most users today prefer a graphical client such as FileZilla rather than the raw command line, but the underlying commands, login, change directory, upload, download, are the same either way.

Frequently asked questions

Is FTP still used today?

Yes, some hosts and tools still support it, but most hosting providers recommend SFTP or FTPS instead because plain FTP sends credentials and data without encryption.

What port does FTP use?

FTP uses port 21 for the control connection that carries commands and logins. The data connection for the actual file transfer uses a separate port that varies depending on active or passive mode.

What is the difference between FTP and SFTP?

FTP is unencrypted and transmits the password and file contents in plain text, while SFTP runs over the encrypted SSH protocol and protects both the login and the data in transit.

Why does FTP fail through a firewall but work on another network?

FTP opens a second connection for data transfer in addition to the control connection, and a restrictive firewall or router can block that second connection unless passive mode is configured correctly.

Do I need special software to use FTP?

You need an FTP client, such as FileZilla, WinSCP or a built-in file manager in many operating systems, to connect to a server and transfer files; a plain web browser offers very limited FTP support.

Can FTP transfer very large files?

FTP has no inherent file size limit, but large transfers are more exposed to interruption on an unencrypted connection, and some hosts cap upload size or connection time regardless of protocol.

Related topics