Download just a slice of a GitHub repo

Paste a link to any folder on GitHub and gitsparse previews the files and zips up only that subfolder — no cloning the whole repo required.

Or see it in action: vanillawebprojects/form-validator

How it works

  1. Paste any GitHub folder link into the box above, or
  2. just swap the domain in your browser's address bar yourself — no need to visit GitHub first:
GitHubgithub.com/bradtraversy/vanillawebprojects/tree/master/form-validator
gitsparsegitsparse.com/bradtraversy/vanillawebprojects/tree/master/form-validator

Works on a whole repo too — gitsparse.com/bradtraversy/vanillawebprojects browses everything from the root.

Why not just clone it?

For big folders, or when you need full history, plain git is the better tool — git clone --filter=blob:none plus sparse-checkout does this properly; see the terminal instructions for the exact commands. gitsparse trades that flexibility for zero setup: no terminal, no git install, works from a phone. It's for the smaller, more common case — you just want one folder, once, without thinking about git flags. More real examples of when that's worth it are on the examples page.