Tools / Conventional Commit Builder

Conventional Commit Builder.

Build a Conventional Commits message with scope, body, breaking change and footers, plus the git command.

Runs in your browser

Optional. A short noun for the area of the code, without spaces.

One line, imperative mood, no period at the end.

One per line: "Token: value" or "Token #value".

0 turns wrapping off.

Ctrl/⌘ + Enter to run · Ctrl/⌘ + Shift + C to copy the result

Result
Commit message
Git command
Checks

About Conventional Commit Builder

The Conventional Commit Builder assembles a commit message that follows the Conventional Commits 1.0 specification, the format that semantic-release, release-please, standard-version and commitlint rely on to pick version numbers and write changelogs. You choose a type such as feat or fix, add an optional scope and a one-line description, and the tool writes the header, for example "feat(auth)!: add OAuth login with GitHub". The body is wrapped at 72 characters, keeping list items with a hanging indent and leaving code blocks alone, so the message reads well in git log and in terminal tools. A breaking change adds the exclamation mark after the type or scope and a "BREAKING CHANGE:" footer with your explanation, which is what triggers a major version bump. Other footers such as "Refs: #142" or "Reviewed-by: Jane Doe" are checked against the token format of the spec. Next to the message you get a git command that passes it through a quoted heredoc, so quotes, backticks and dollar signs in the text reach git unchanged. The checks table points out the usual slips: a header longer than 72 characters, a trailing period, a capitalised first word that commitlint's default rules reject, past tense like "added" instead of the imperative "add", and a breaking change marked with "!" but never explained. The builder runs entirely in your browser.

How to Use

  1. Pick the type, then enter an optional scope and a one-line description in the imperative mood.
  2. Add a body, mark breaking changes and list footers such as issue references, one per line.
  3. Copy the message, or copy the git command and run it in your repository.

Frequently Asked Questions

Which type should I use?

feat for a new feature (minor version), fix for a bug fix (patch version). docs, style, refactor, perf, test, build, ci and chore do not change the version by themselves. Any type with a breaking change triggers a major version.

How do I mark a breaking change?

Add "!" before the colon, as in "feat(api)!:", and explain the change in a "BREAKING CHANGE:" footer. The builder does both when you fill in the breaking change description.

Why does the command use a heredoc?

git commit -F - reads the message from standard input. A quoted heredoc ('EOF') stops the shell from expanding $variables and backticks, so multi-line messages arrive exactly as written.

Is my commit message stored anywhere?

No. The message is built in your browser and nothing is sent to a server.

Related Tools