Convert KEY=value pairs between dotenv, shell export, Docker, Compose, Kubernetes, JSON and YAML formats.
Gitignore Generator
Assemble a .gitignore from curated templates for languages, frameworks, editors and operating systems.
- Free
- No sign-up
- Runs in your browser
Input
Comma separated. Available: node, python, java, go, rust, php, ruby, dotnet, macos, windows, linux, editors, secrets, docker, terraform, unity, laravel, django, nextjs.
Ready
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
List the templates you want. Combining a language, an editor, an operating system and `secrets` covers most projects.
- 2
Copy the result into a `.gitignore` at your repository root.
Questions about Gitignore Generator
I added a file to .gitignore but git still tracks it. Why?
Because .gitignore only affects *untracked* files. Once a file is tracked, git keeps tracking it. Run `git rm --cached <file>` to stop, then commit. Crucially, the file remains in the history - if it was a secret, rotate the credential, because removing it from the working tree does not remove it from every clone.
How do the patterns work?
Relative to the .gitignore file. A leading slash anchors to that directory (`/build` ignores only the top-level one), a trailing slash matches directories only (`build/`), `*` matches within a path segment, `**` crosses segments, and a leading `!` re-includes something an earlier rule excluded.
Why is there a separate secrets template?
Because a committed credential is the most expensive mistake in this list, and it is easy to make. Every one of these patterns - `.env`, `*.pem`, `id_rsa`, `service-account*.json` - represents a credential that gets committed routinely. The template includes a comment reminding you that rotation, not deletion, is the fix once it has happened.
Is my data sent anywhere?
No. This tool runs as JavaScript inside your browser tab. There is no network request carrying your input, nothing is written to a server log, and it keeps working with your connection switched off. You can confirm it in the browser’s network panel. That matters more here than elsewhere on the site: developer tools handle tokens, keys and production data.
Does the Gitignore Generator work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Gitignore Generator keeps working with the network switched off and nothing is ever sent to a server.
Related tools
Other tools you might reach for next.
Format and indent JSON, with optional alphabetical key sorting and a precise syntax error when it will not parse.
Strip every byte of insignificant whitespace from JSON and report the saving.
Check that JSON is syntactically valid, report its structure, and flag duplicate keys that JSON.parse accepts silently.
Compare two JSON documents structurally, by path, distinguishing a type change from a value change.
Evaluate a JSONPath expression against a document and see every match with the path that produced it.
Escape text so it can be embedded as a JSON string value, handling control characters and astral code points.
Decode an escaped JSON string back to its raw text, with or without the wrapping quotes.