How to Create a CSV or Excel Direct Download Link in Google Sheets

As a Google Sheets user, you've probably already used the option to download the entire spreadsheet into an Excel file or a specific sheet/tab as a CSV/TSV file (under File > Download).

Did you know that you can actually create a URL that will do this for you automatically?  This way, you can share this direct download URL with others or just create a shortcut on your browser that you can click so you can auto-export the data to CSV/TSV or Excel without having to go through the menu options. 

This is particularly useful for sharing a product feed with other platforms as many platforms typically require a direct download link of a CSV file.

Doing so is fairly straightforward, you basically just need to remove the part starting from /edit and replace it with /export with some additional text.


A Google Sheets URL might look something like tihs:

URL to download the entire spreadsheet to Excel:

URL to download just a specific sheet/tab to Excel:

Notice that the difference is we included &gid=1330027783 to the URL.  This is basically the "Sheet ID" and as you switch sheets/tabs in Google Sheets, you'll notice this value changes and you can basicaly just copy that ID and append it to the URL if you want that specific sheet exported.

URL to export a specific sheet/tab to CSV:

URL to export a specific sheet/tab to TSV:

As you can see, there's a consistent pattern here.  You just need to replace the value assigned to format with your desired format.

Related Posts:

Tags: howto, data export, google sheets, product feed, google sheets tips