FTP URL Parser / Builder

Parse an FTP URL into its components or build a valid FTP/SFTP/FTPS URL from host, port, path, and credentials.

FTP URL format reference

FTP

ftp://username:password@host:21/path/to/file.txt

SFTP

sftp://username@host:22/path/to/file.txt

FTPS (Implicit)

ftps://username:password@host:990/path/to/file.txt

Note: embedding passwords in URLs is not recommended for production use — use key-based auth or a secrets manager instead.