Contact

Tools  /  Generators  /  Git Branch Name Generator

Git Branch Name Generator

Turn a ticket ID and a description into a clean, valid git branch name — pick a convention (GitHub Flow, GitFlow, Conventional, Jira, Linear), tune the separators, case, length and stop-word stripping, and get a checked name plus a git switch -c command.

What this tool does

It slugifies a description into a branch name, prefixes it the way your team does, and checks the result against git's rules for a valid ref name.

Conventions

GitHub Flowfeature/short-description. GitFlowfeature/, release/, hotfix/ off the matching base. Conventional — mirrors commit types: feat/, fix/, chore/. JiraPROJ-123-short-description. Linearusername/abc-123-short-description.

Options

Prefix separator (/ or -), word separator (- or _), lower-case, a maximum length that cuts on a word boundary, and removal of filler words like "the", "and", "to".

Validation

git rejects names with .., a leading -, a trailing . or .lock, the sequences @{ or //, whitespace, control characters or any of ~ ^ : ? * [ \. The tool flags these before you create the branch.

Privacy

Everything runs in your browser. Nothing is uploaded.

Frequently asked questions

What makes a branch name invalid in git?
A leading dash, "..", a trailing "." or ".lock", "@{", "//", whitespace, control characters, or any of ~ ^ : ? * [ backslash. The tool checks all of these.
Should I use slashes in branch names?
Slashes are allowed and common (feature/…). Just avoid a trailing slash and "//". Some older tooling dislikes them, but modern git and GitHub handle them fine.
How does the length limit work?
It truncates the slug at the last whole word that fits, so you never get a name ending in a half-word. The prefix and ticket are not counted toward the limit.
What is the Linear convention?
Linear suggests username/team-identifier-issue-number-title, e.g. sam/eng-431-add-oauth. Set your username and the issue ID and pick the Linear preset.
Is anything sent to a server?
No. Slugifying and validation are entirely local.
Theme Accent