What is a git branch naming convention?
A branch naming convention is an agreed pattern for naming git branches, usually a type prefix such as feature/ or fix/, an optional ticket ID and a short description in kebab-case. Consistent names make it clear what each branch is for and let automation link branches to tickets.
Paste one or more task titles and choose the prefix or let it be guessed, add a ticket ID, and pick the separator and maximum length. Each title becomes a clean branch name, ready to copy.
How to use the Git branch name generator
1.Paste task titles
One per line, straight from your tracker.
2.Set prefix, ticket and length
Or let the prefix be guessed from the wording.
3.Copy the names
Then run git switch -c <name>.
Example: three tickets
Titles pasted from a tracker:
- Fix login redirect when session expires
- fix/login-redirect-when-session-expires
- Add CSV export to the reports page
- feature/add-csv-export-to-the-reports-page
- Upgrade Next.js to 16 & remove old flags
- chore/upgrade-next-js-to-16-remove-old-flags
Consistent names, with prefixes chosen from the wording.
Clean, predictable names
Titles are lowercased, accents are removed and anything that isn't a letter or digit becomes a hyphen or underscore, so names are safe in git, URLs and CI scripts. A first word that repeats the prefix is dropped, so "Fix login" becomes fix/login-… rather than fix/fix-login-….
The prefix is guessed from words like fix, bug, docs, refactor or upgrade, and defaults to feature/. Names longer than the limit are cut at a word boundary; 63 characters suits tools that use branch names in hostnames.
Frequently asked questions
Where does the ticket ID go?
Right after the prefix, in capitals: fix/ZAP-42-login-redirect…
Why limit the length?
Long names get cut off in tools and can break preview deployment URLs.
Can I use underscores?
Yes. Choose Underscore as the separator.
Does it create the branch?
No. Copy a name and run git switch -c with it.
Related tools
Conventional commit generator
Write commit messages in the Conventional Commits format, with the git command.
URL Slug Generator
Turn titles into clean, lowercase URL slugs.
Git cheat sheet
Searchable git commands for everyday work, branches, undoing and releases.
.gitignore generator
Combine .gitignore rules for your languages, frameworks, OS and editor.
Semver calculator
Bump, compare and check versions against npm-style ranges like ^1.2.0.
JSON Formatter & Validator
Pretty-print, minify, sort and validate JSON with line-numbered errors.
More Developer tools
JSON & data
CSV tools
Network & system
Web & API
Encoding & security
- Base64 encode & decode
- URL encode & decode
- JWT decoder
- Hash generator
- HTML entity encoder
- Text to binary
- Morse code translator
- Caesar cipher & ROT13
- Random string generator
- Secret key generator
- 2FA code generator (TOTP)
- Encrypt & decrypt text
- Encrypt & decrypt files
- SSH key generator
- Base32 encoder and decoder
- Unicode escape converter
- Nano ID generator
- JWT generator
Text & code
- Regex tester
- Text diff checker
- Cron expression explainer
- Lorem ipsum generator
- Markdown previewer
- Strip HTML tags
- Unicode character inspector
- URL parser
- Markdown TOC generator
- cURL converter
- Whitespace visualizer
- Markdown link extractor
- Regex escape
- Regex match extractor
- Split text by regex
- HTML, CSS and JS playground
- Mock data generator
- Keyboard event tester
- ASCII table