When should I use ascii and when should I use binary?

ASCII vs Binary FTP Transfer Mode

 

When uploading files via FTP, you may need to choose between ASCII and Binary transfer modes.

 

When to Use Each Mode

  • Binary mode: Use for all non-text files including images (jpg, png, gif), compressed files (zip, tar.gz), PDFs, videos, audio, executables, and any file format that is not plain text. Binary mode transfers files byte-for-byte without any conversion.
  • ASCII mode: Use for plain text files including HTML, CSS, PHP, Perl scripts, JavaScript, and configuration files. ASCII mode converts line endings between operating systems (Windows uses CRLF, Linux uses LF).

 

Recommended: Use Auto Mode

Most modern FTP clients (including FileZilla) default to Auto mode, which automatically detects the file type and uses the correct transfer mode. We recommend leaving it on Auto. In FileZilla, this is set under Transfer > Transfer type > Auto.

 

Uploading a binary file in ASCII mode (or vice versa) can corrupt the file. If an image appears broken or a script does not work after uploading, re-upload it using the correct transfer mode.

  • 467 Users Found This Useful

Was this answer helpful?

Related Articles

What is a virtual Domain?

What is a Virtual Domain?   A virtual domain (also called a domain name) is the web address...

osCommerce password reset

How to reset your osCommerce admin login... You can reset your osCommerce administrative login...

Why is the server load status red?

Why is the Server Load Status Showing Red?   If you see a red server load status indicator...

Cross Origin Request Error

Cross-Origin Request Error (CORS)   If you see "Cross-Origin Request Blocked" or "No...

SSL - Creating a CSR in Windows 2003

Creating the CSR IIS Windows 2003 or 2000 Server: From Administrative Tools, run the Internet...



Save 30% on web hosting - Use coupon code Hosting30