Ftp: type


Applies To: Windows Vista, Windows Server 2008, Windows 7, Windows Server 2008 R2, Windows Server 2012, Windows 8

Sets or displays the file transfer type. For examples of how this command can be used, see Examples.


type [<TypeName>]





Specifies the file transfer type.


  • If TypeName is not specified, the current type is displayed.

  • Ftp supports two file transfer types, ASCII and binary.

    The default file transfer type is ASCII. The ascii command should be used when transferring text files. In ASCII mode, character conversions to and from the network standard character set are performed. For example, end-of-line characters are converted as required, based on the operating system at the destination.

    The binary command should be used when transferring executable files. In binary mode, the file is moved in one-byte units.


Set the file transfer type to ASCII.

type ascii

Set the transfer file type to binary.

type binary

Additional references