.gitignore Generator

Build a .gitignore for your languages and tools.

Generate a clean .gitignore in seconds. Select the languages, frameworks, operating systems, and editors your project uses, and get a combined .gitignore ready to copy or download into your repo.

Pick your languages, frameworks & tools
.gitignore
# Node
node_modules/
npm-debug.log*
yarn-error.log
.pnpm-debug.log*
.env
.env.local
dist/
coverage/

# Next.js
.next/
out/
build/
.vercel
next-env.d.ts

# macOS
.DS_Store
.AppleDouble
._*
.Spotlight-V100
.Trashes

Runs entirely in your browser — nothing is uploaded.

How to use the .gitignore generator

  1. 1Select your languages, frameworks, and tools.
  2. 2The .gitignore builds automatically as you pick.
  3. 3Copy it or download the file into your project root.

Frequently asked questions

What is a .gitignore file?

It tells Git which files and folders to ignore — like node_modules, build output, and secrets — so they're never committed to your repository.

Where do I put the .gitignore?

In the root of your Git repository. You can also add nested .gitignore files in subfolders.

Can I combine multiple templates?

Yes — pick several (e.g. Node + Next.js + macOS) and they're merged into one file.

Related tools