ToolXkit Icon

Gitignore Generator

Build a .gitignore for your stack, secrets included.

  • Free
  • No signup
  • Nothing uploaded
  • No watermark

Your command

# Node
node_modules/
npm-debug.log*
yarn-error.log*
.pnpm-store/
dist/
build/
coverage/
.next/
.nuxt/
.cache/

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

# Windows
Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/

# Editors
.vscode/
.idea/
*.swp
*.swo
*~
.project
.settings/

# Secrets — never commit these
.env
.env.*
!.env.example
*.pem
*.key
secrets.json
credentials.json

What each part does

.env.*
ignores every environment file
!.env.example
the ! un-ignores this one, so the template stays in the repository
trailing /
a slash at the end matches directories only — "build/" ignores the folder, "build" also ignores a file called build

A .gitignore only affects files git is not already tracking. For something already committed: `git rm --cached <file>` first.

Built in your browser. Nothing you type — paths, hostnames, tokens — is sent anywhere.

How to Use the Gitignore Generator Online

Gitignore Generator: before and after TEXT A YOUR INPUT GITIGNOREGENERATOR DONE A RESULT

Gitignore Generator builds a .gitignore from tick boxes: Node, Python, Java, Go, Rust, the macOS and Windows junk files, editor folders, and a secrets block covering .env files, .pem and .key files and credentials.json. The secrets block is ticked by default, because a committed key stays in the history after you delete it and must then be rotated. Each rule is explained, including the ! that keeps .env.example in the repo.

Builds a .gitignore for your stack, with secrets included. The entries that matter most are the ones for .env files and key material — a committed secret stays in the history after deletion, which means rotating the credential rather than editing the file.

No software to install Free Works on any device

Step-by-Step Guide to Using the Gitignore Generator

  1. 1. Choose what you want the command to do, and fill in the parts it needs

  2. 2. The result is built as you type, with each part explained underneath

  3. 3. Copy it and paste it straight into your terminal or client

Try it now

What is the Gitignore Generator?

Builds a .gitignore for your stack, with secrets included. The entries that matter most are the ones for .env files and key material — a committed secret stays in the history after deletion, which means rotating the credential rather than editing the file.

At a glance

  • Inputs: Nine tick boxes: Node, Python, Java, Go, Rust, macOS, Windows, editors, secrets
  • Output: A .gitignore with a commented block per choice, ready to copy
  • Secrets block: .env, .env.*, *.pem, *.key, secrets.json, credentials.json, with !.env.example kept
  • Explained: What a trailing slash does and how ! un-ignores a file
  • Tip: A file already tracked needs git rm --cached first; ignoring it is not enough
  • Price: Free, no signup

Why Use Text Tools Online?

Counting words, changing case, pulling emails out of a page or writing an amount in words are small jobs that eat time by hand. These tools do them the moment you paste, and the text stays in your browser.

“Paste once, and let the tool do the fiddly part.”
  • Counts as you type
  • Lists sorted and cleaned
  • QR codes for anything
  • Cheque amounts in words
  • Case changed in one click
  • Emails and links pulled out
  • Citations in APA or Chicago
  • Handy commands for developers

Popular Uses for Text Utilities

Short, repetitive text jobs are what these tools were made for.

  • Essay word limits Check that an essay or application answer is within the word or character limit.
  • Fixing capital letters Turn text typed in CAPS LOCK into normal sentence case without retyping it.
  • Collecting contacts Pull every email address or phone number out of a long message or page.
  • Writing cheques Get a rupee or dollar amount written correctly in words for a cheque or invoice.
  • QR codes Make a QR code for a website link, contact card, email address or event.
  • Reference lists Format a book or website reference in APA or Chicago style for an assignment.
  • Tidying lists Sort lines alphabetically, remove repeats or add numbers to a pasted list.
  • Command helpers Build a cron schedule, git command or chmod setting without searching the manual.

What You Can Do with the Gitignore Generator

Says whether the command rewrites history before you run it

Builds the command from what you want to happen, rather than expecting you to recall the flags

Explains each flag in the result, so the command is understood before it is run

Why Use ToolXkit for Gitignore Generator?

Your files stay with you

Everything runs inside your browser. Nothing you open or type is uploaded to a server.

Writing and Text Tools for Different Users

Students

Count words, format citations and tidy notes before submitting coursework.

Writers and bloggers

Change case, find repeated words and check length before publishing a piece.

Office workers

Clean up pasted lists, find and replace names and write amounts in words.

Marketers

Extract emails, links and hashtags from pages and make QR codes for campaigns.

Developers

Encode Base64, build cron lines and generate git and shell commands quickly.

Accountants

Write invoice and cheque amounts in words and tidy columns of pasted figures.

Best Times to Clean Up Text

Text tools save time when you are:

  • Keeping to a word limit
  • Fixing text typed in capitals
  • Building a contact list from emails
  • Writing out a cheque
  • Printing a QR code poster
  • Finishing a reference list
  • Removing repeats from a list
  • Setting up a scheduled job

Tips and Good to Know

  1. Nine stacks, not hundreds. For Unity, Android Studio, LaTeX or a specific framework, add their patterns yourself.

  2. It cannot see your repository, so it will not tell you what you have already committed by mistake.

  3. A secret that was ever pushed is compromised. Ignoring it now stops the next leak; rotating the credential fixes the last one.

Frequently Asked Questions

Answers to common questions about this tool.

Do I need to install anything to use the Gitignore Generator?

No. Gitignore Generator runs entirely in your browser — there is nothing to download, no extension and no desktop program. It works the same on Windows, macOS, Linux, Android and iPhone.

Is it safe to use the Gitignore Generator online?

Safer than the usual alternative, yes. Most online tools upload your file to a server you know nothing about, where it sits until someone deletes it. Here the file never leaves your device — the processing happens in the page itself, so there is no server copy to leak, retain or sell.

Is my text sent anywhere when I use Gitignore Generator?

No. The text you paste is handled in your browser and never leaves the page. That makes it safe for drafts, customer lists and anything else you would rather keep to yourself.

Is there a limit on how much text I can paste?

The site sets none. Long documents are handled by your own device, so a whole book may be slow on an older phone. Articles, essays and long lists are no trouble.

Can I use Gitignore Generator without making an account?

Yes. There is no login, no email to hand over and no daily limit. Open the page, paste or type, and copy or download the result when it is ready.

Why does my word count differ from Microsoft Word?

Programs treat hyphenated words, numbers and symbols a little differently. The gap is usually a few words in a long piece. If a teacher or portal sets a limit, stay a little under it to be safe.

Do the QR codes made here expire?

No. The information is stored directly in the pattern, with no redirect through our servers, so the code keeps working for as long as the link or text inside it stays valid.

Further reading

  • Unicode Consortium The body that sets how letters, symbols and emoji from every language are stored as text.
  • Letter case (Wikipedia) The rules and names for upper case, lower case, title case and the styles programmers use.
  • Base64 (MDN) A plain explanation of Base64, the encoding used to carry files and images as text.

More Text & Developer Tools

Other free tools for the same kind of job.

Browse all tools