Calculator

What the Gitignore Generator does

Gitignore Generator: generates Status and .gitignore from Language / framework, Second stack (optional) and Operating system files. Example: language / framework Node.js / JavaScript / TypeScript, second stack (optional) None and operating system files macOS + Windows + Linux gives status 35 ignore patterns.

Status and .gitignore, derived from Language / framework, Second stack (optional), Operating system files and Editor. You can nudge a single number and watch the effect straight away.

Most people who open the Gitignore Generator are developers debugging a payload. Spotting a malformed field is far quicker when the structure is laid out clearly.

The page holds your values in memory and forgets them the moment you close it.

If you want to check the arithmetic, the field table, the method and a worked example are further down.

What do the Gitignore Generator fields mean?

The Gitignore Generator uses 5 inputs. You do not have to fill everything in before seeing an answer; the starting values already produce one.

FieldWhat to enterDefault
Language / framework choose from Node.js / JavaScript / TypeScript, Python, Java (Maven / Gradle), Go, Rust or .NET / C# Node.js / JavaScript / TypeScript
Second stack (optional) choose from None, node, python, java, go or rust None
Operating system files choose from macOS + Windows + Linux, macOS, Windows, Linux or None macOS + Windows + Linux
Editor choose from VS Code, JetBrains (IntelliJ, WebStorm, PyCharm), Vim / Emacs or None VS Code
Extra patterns (one per line) paste or type any amount of text none

How does the Gitignore Generator work?

Status and .gitignore ← f(Language / framework, Second stack (optional), Operating system files, Editor, Extra patterns (one per line))

Each output is derived from the inputs above in a single pass; there is no hidden state carried between runs, so the same inputs always give the same generated output.

Values are checked first: an out-of-range or non-numeric entry names the offending field instead of returning nonsense.

Worked example

These are the values the Gitignore Generator loads by default, and the result it produces from them. This is the worked example the page starts from, reproduced here so you can check the arithmetic.

Inputs
Language / frameworkNode.js / JavaScript / TypeScript
Second stack (optional)None
Operating system filesmacOS + Windows + Linux
EditorVS Code
Extra patterns (one per line)(empty)
Result
Status35 ignore patterns
.gitignore# Node node_modules/ npm-debug.log* yarn-debug.log* yarn-error.log* pnpm-debug.log* .npm dist/ build/ .next/ .nuxt/…

How to use it

  1. Pick a value for Language / framework: the options are Node.js / JavaScript / TypeScript, Python, Java (Maven / Gradle), Go, Rust or .NET / C#.
  2. Pick a value for Second stack (optional): the options are None, node, python, java, go or rust.
  3. Pick a value for Operating system files: the options are macOS + Windows + Linux, macOS, Windows, Linux or None.
  4. Pick a value for Editor: the options are VS Code, JetBrains (IntelliJ, WebStorm, PyCharm), Vim / Emacs or None.
  5. Paste your content into Extra patterns (one per line).
  6. Live output means you can search for a target value by nudging an input up and down.
  7. The panel reports Status and .gitignore.
  8. Copy Link puts the current inputs in the URL, so bookmarking it brings the same numbers back.

What this tool does not do

  • Output follows the common convention for this format; a specific toolchain may have its own house style.
  • Processing happens in your browser, so very large inputs are bounded by available memory.
  • It assumes the values you give are already consistent with each other.

Frequently asked questions

You need Language / framework, Second stack (optional), Operating system files, Editor and Extra patterns (one per line). Every box already holds a working value, letting you treat it as a what-if tool rather than a data-entry form.

With the values loaded when the page opens, status comes out as 35 ignore patterns. The figure is derived from the inputs above, so it updates whenever they do.

Nothing is stored. The page has no back end to send data to, and holds your input only in memory.

No. There is no account, no usage cap and no trial period. The site is funded by advertising rather than by charging for the tools.

The generated output is exact for the method described above. Where a value is rounded for display, the underlying figure keeps full precision.

YoursTools Team
Product & Engineering

Builds and maintains every calculator on YoursTools.