AI Commit Message Generator by AI Diff Summarizer

AI Commit Message Generator

Paste a git diff → get a conventional commit message in seconds. Free, runs in your browser, no data leaves your machine except to Anthropic's API with your own key.

Key stored in your browser only. Get a free key → Or try an example below without a key.

0 chars
Try an example: auth rate limiting off-by-one fix dependency bump extract helper
✅ Commit message Claude
feat(scope): description

Example: diff → commit message

Git diff input
- const start = page * pageSize; + // Page numbers are 1-indexed in the public API + const start = (page - 1) * pageSize;
Generated commit message
fix(pagination): correct off-by-one in page offset Page numbers are 1-indexed in the public API but the implementation used 0-indexed arithmetic, causing page 1 to skip the first pageSize results.

Conventional commit types

feat
New feature or capability
fix
Bug fix or error correction
refactor
Code restructure, no behavior change
docs
Documentation only changes
test
Adding or fixing tests
chore
Build, deps, config changes
perf
Performance improvements
ci
CI/CD pipeline changes

How it works

1

Get your staged diff

Run git diff --staged to see what you're about to commit, or git diff HEAD~1 for the last commit's diff. Copy the full output.

2

Paste and generate

Paste your diff above. Add your Anthropic API key once (stored only in your browser). Click Generate commit message or press Ctrl+Enter.

3

Copy and commit

You get a conventional commit ready to use. Click Copy git commit -m "…" to copy a complete terminal command.

Frequently asked questions

How do I get the git diff to paste here?
Run git diff --staged to see changes you've already staged with git add. Run git diff HEAD~1 to see the diff of your most recent commit. Run git diff main to see everything on your branch vs main. Copy the terminal output and paste it into the tool.
What is a conventional commit message format?
Conventional Commits is a lightweight spec. Format: type(scope): description. Common types: feat (new feature), fix (bug fix), refactor, docs, test, chore. Example: feat(auth): add OAuth2 login flow. Tools like semantic-release and conventional-changelog parse this format automatically.
Is my source code safe?
Your diff goes directly from your browser to Anthropic's API using your own API key. It never touches any third-party server. No code is logged, stored, or used for training. The tool runs entirely client-side.
How much does it cost to use?
The tool itself is free. You pay Anthropic directly for API usage. A typical git diff costs $0.001–$0.01 using Claude Haiku. You can get a free API key with $5 in starting credits at console.anthropic.com.
Can it generate a multi-line commit body?
Yes. For meaningful diffs, the AI generates a short subject line (type(scope): description) followed by a blank line and a body paragraph explaining the motivation and key details. For trivial single-line changes, it outputs just the subject line.