Git Commit Message Generator

Paste a git diff and get clear commit messages in Conventional Commits style (feat, fix, refactor…) with scope, subject and a file-by-file body.

Tool

Was this tool useful?

About this tool

About Git Commit Message Generator

Run git diff (or git diff --staged) and paste the output. The tool sees which files were added, changed, renamed or deleted and which functions were added or removed, guesses the type and scope, and suggests three subject lines plus a body. Choose plain, Conventional Commits or gitmoji style and a 50 or 72 character limit.

How it works

Type rules: only .md files → docs; only tests → test; workflows → ci; lock files/config → chore/build; bug words in added lines → fix; new files or functions → feat; renames or balanced edits → refactor. Scope = shared folder or file name.

Example

A diff adding applyCoupon() and isCouponValid() to src/cart/discount.js and a new test file → “feat(cart): add apply coupon and is coupon valid”.

How to use this tool

  1. Run git diff --staged and paste the output.
  2. Optionally say in a few words what you changed.
  3. Copy the subject or the full message.

Frequently asked questions

Does it send my code anywhere?

No – the diff stays in your browser.

Why is the subject a bit robotic?

It is built from names in the code. Add a short hint about why you changed it – good commit messages explain the reason.

Is this an AI tool?

It works with clear, tested rules and formulas instead of an AI model, so results are fast, private and the same every time. You can see exactly why each result was given.

Is my data uploaded?

No. Everything runs in your browser and stays on this device.

Does the Git Commit Message Generator send my data to a server?

No. The Git Commit Message Generator runs entirely in your browser using JavaScript, so tokens, code and data you paste stay on your device. You can even use it offline once the page has loaded.