HOW-TO GUIDE

How to download a GitHub folder as a .zip

GitHub's built-in download button only ever gives you the whole repository. Here's how to grab just one folder instead — no cloning, no pasting URLs into a third-party website, no waiting for the entire repo to transfer.

Why "Download ZIP" doesn't solve this

Click the green "Code" button on any GitHub repo and choose "Download ZIP," and you'll get everything — every top-level folder, every file, regardless of which one you actually wanted. For a small repository that's a minor inconvenience. For a large monorepo where you only need the packages/ui-kit folder, it means downloading potentially gigabytes of unrelated code to get at a few megabytes you actually care about.

This is common enough that an entire category of third-party websites exists purely to solve it — you paste a GitHub folder URL in, wait for their server to fetch and zip it, and download the result from them. That works, but it means a third party's server sees exactly which repository and folder you're interested in, which is a real consideration for private work.

Install RepoKit

Add RepoKit to Chrome — free, no account, works immediately.

Navigate to the folder you want

Click through the repository to the specific folder — RepoKit works at any depth, not just the repo root.

Hover the folder row

A small folder-with-zip icon appears next to the folder name on hover, alongside the size badge.

Click it

RepoKit fetches every file inside that folder through GitHub's API and assembles a .zip entirely in your browser.

Save the file

Your browser's normal download flow takes over from there — the .zip lands in your downloads folder just like any other file.
Selecting multiple items instead

If you want a specific handful of files and folders rather than one whole directory, RepoKit also adds checkboxes to every row — select what you need, then use the same download action in the selection toolbar to bundle your exact picks into one .zip.

A note on where the data goes

Because this runs entirely client-side inside the extension, every file request goes directly from your browser to GitHub's own API — never through a RepoKit-operated server, because there isn't one. This is a meaningful difference from paste-a-URL downloader websites for anyone downloading from private or sensitive repositories.

Frequently asked questions

Do I need to know the folder's GitHub URL in advance?+
No — you just navigate to it normally by clicking through the repository, then use RepoKit's download button on that folder. Some third-party tools require pasting a URL; this skips that step entirely since you're already on the page.
Will this include the folder's Git history?+
No — like GitHub's own repo-wide 'Download ZIP' button, this gives you a snapshot of the files as they currently exist on the selected branch, not the commit history behind them. If you need history, cloning is still the right tool.
Does it work for folders inside a monorepo?+
Yes, and this is one of the most common reasons people reach for it — grabbing a single package's folder out of a large monorepo without cloning the entire repository.
Keep exploring

Related pages

Download exactly the GitHub folder you need.

One click, no cloning, nothing routed through a third-party server.

Add RepoKit to Chrome — it's free
Free · No account required · Works instantly on github.com