Skip to main content

Git Commit Message Formatter

Create, format, and validate your Git commit messages online. Write clean history logs adhering to Conventional Commits and Semantic Versioning.

Advertisement

0/50

Imperative mood, lowercase, no period at the end.

Final Commit Message

Validation Status 100/100

SemVer Release
MINOR v1.1.0
Changelog Preview

Advertisement

Conventional Commits Cheat Sheet

Type Purpose Gitmoji SemVer Effect
featA new feature✨MINOR
fixA bug fix🐛PATCH
docsDocumentation only changes📚None
styleFormatting, missing semi colons, etc💎None
refactorCode change that neither fixes a bug nor adds a feature♻️None
perfCode change that improves performance⚡️PATCH
testAdding or correcting tests🚨None
buildChanges that affect the build system or dependencies📦None
ciChanges to CI configuration files and scripts👷None
choreOther changes that don't modify src or test files🔧None
feat!Breaking change (any type + !)💥MAJOR

Why "fixed bug" Commits Hurt Code Review and Release Automation

Scroll through git log --oneline six months into a project where nobody agreed on commit rules and every change reads wip, update, or fix stuff. Hunting down which change altered an authentication cookie means opening dozens of diffs by hand, and automated changelog scripts cannot tell a documentation typo apart from a breaking API change.

Conventional Commits v1.0.0 solves both problems with one lightweight header format: type(scope): description, followed by an optional body and footer. This builder keeps your draft saved locally in your browser, checks your message against a live 0 to 100 quality score, previews the exact Semantic Versioning (SemVer) bump, lets you paste and auto repair sloppy messages in the Paste tab, and avoids sending repository details over the network.

How Each Field Shapes the Final Commit Message

Look at the Cheat Sheet table right above this guide for the full list of commit types (plus revert in the dropdown for backing out an earlier commit). Pairing those fields cleanly gives both reviewers and automated parsers everything they need:

  • Type and lowercase Scope: Picking feat, fix, perf, or refactor sets the intent, while an optional scope like auth, db, or ui narrows down which module changed. The builder automatically lowercases scopes so API and api never split your changelog into two headings.
  • Short Description (50 character target): Keep the summary crisp, imperative, lowercase, and free of trailing periods. Going past 50 characters triggers a deduction in Validation Status because GitHub and terminal views truncate longer titles with ellipses.
  • Long Body wrapped at 72 characters: Use the body for context reviewers cannot infer from the diff itself: why you picked this approach, edge cases you left alone, or migration notes. Clicking Auto Wrap @72 inserts clean line breaks at 72 columns so paragraphs stay readable inside narrow terminal pagers.
  • Footer references and breaking notes: Add issue keywords like Closes #123 or Refs #42, or start a paragraph with BREAKING CHANGE: when callers must update their code.

The 50/72 Rule and the Imperative Mood Test

Two habits trip up developers switching to Conventional Commits: writing in past tense ("added login check" or "fixes timeout") and writing multi sentence subject lines. Git itself uses imperative mood in its auto generated merge messages ("Merge branch main into feature"), so matching that tone keeps history consistent.

A fast sanity check makes imperative mood automatic: mentally place your description at the end of the phrase "If applied, this commit will...". "If applied, this commit will add Google OAuth login" reads naturally; "If applied, this commit will added Google OAuth login" sounds broken right away. If you already wrote a sloppy commit elsewhere, open the Paste Raw Commit tab above and hit Auto-Fix: the tool lowercases the opening letter, strips any trailing period, wraps long body lines at 72 characters, and separates footers cleanly.

One small warning on the Use Gitmoji switch: inserting emojis right after the colon looks friendly in GitHub commit lists, yet strict commitlint setups often reject non ASCII characters or count multi byte emojis against header length rules. Leave Gitmoji turned off if your CI pipeline enforces strict ASCII lint rules.

CI/CD Release Breakage Case

Why a Missing Blank Line Prevents a Major SemVer Release

Automated tools such as semantic-release and release-please inspect commit logs to decide between a PATCH (fix / perf), MINOR (feat), or MAJOR (breaking change) bump. Missing the blank line before a footer, or typing breaking change: in lowercase, causes parsers to treat the breaking line as ordinary text:

// FAILS MAJOR BUMP: no blank line and lowercase footer

feat(auth): move session tokens to HTTPOnly cookies
breaking change: v1 JSON token endpoint is removed

// TRIGGERS MAJOR v2.0.0 BUMP CLEANLY:

feat(auth)!: move session tokens to HTTPOnly cookies

BREAKING CHANGE: v1 JSON token endpoint is removed.

Checking the BREAKING CHANGE toggle adds the ! marker immediately after the type or scope, and typing an uppercase BREAKING CHANGE: block into Footer inserts the required blank line separator automatically.

Applying Your Copied Message in Git and Pull Requests

Once your validation score hits 100/100 and the SemVer badge matches your intent, click Copy to put the complete multi line message on your clipboard. You can apply it in three clean ways without fighting shell quoting:

  1. GitHub or GitLab Squash and Merge: Paste the subject line into the PR title field and the remaining body/footer lines into the extended description box so the merged commit on main stays spotless even if feature branch commits were messy.
  2. Default terminal editor: Run git commit with no flags so Git opens VS Code, Vim, or Nano, then paste the entire copied message and save.
  3. Piping directly in a shell: On macOS run pbpaste | git commit -F - (or xclip -o | git commit -F - on Linux, or Get-Clipboard | git commit -F - in PowerShell) to commit multi paragraph messages cleanly without escaping quotes.

Conventional Commits FAQs

What is the Conventional Commits specification?

Conventional Commits is a lightweight commit message standard built around structured prefixes such as feat, fix, and BREAKING CHANGE so both teammates and release tools can read project history and calculate Semantic Versioning bumps.

How does this tool indicate a breaking change?

Enabling the BREAKING CHANGE switch appends ! after your type or scope (for example feat(api)!:), and adding an uppercase BREAKING CHANGE: paragraph in the Footer field attaches the breaking details block.

Can I customize the types and scopes for my organization?

Standard commit types live in the dropdown, while the Scope field accepts any module or package name your repository uses (such as billing, cli, or infra), normalized automatically to lowercase.

Does this tool integrate directly with my terminal?

Click Copy to place the complete formatted commit message on your clipboard, then paste it into your Git commit editor, VS Code Source Control, a GitHub squash merge box, or pipe it via git commit -F -.

Are my commit messages or repository details sent to your servers?

No. Formatting, scoring, and draft autosaving happen strictly inside your local browser memory and local storage.

Related Developer Tools