Git Branch Name Generator

Type the ticket and what the work is about. You get a short, lower-case branch name that git accepts, and the command to create it.

How it works

The name is built from three parts: a type such as feature or bugfix, followed by a slash; the ticket number as you typed it; and the description turned into lower-case words joined by dashes.

Accents are folded to plain letters (café becomes cafe), and anything that is not a letter or a digit becomes a word break. That removes every character git forbids in a branch name, so the result always passes git’s own rules. Long descriptions are cut at a whole word to fit the length you set.

Everything happens on this page as you type. Nothing is sent anywhere.

How to use it

  1. 1 Pick a Type: feature, bugfix, hotfix, release, chore, docs, or none.
  2. 2 Type the Ticket, for example PROJ-123. Leave it empty if there is none.
  3. 3 Type a Description of the work in plain words.
  4. 4 Choose the Separator (- or _), and turn on Lower-case the ticket if your team writes branches all in lower case.
  5. 5 Copy the branch name, or copy the git switch -c command and run it.

Good to know

  • Keep the description to a few words. The ticket links to the details; the branch name only needs to be recognisable.
  • Max length defaults to 60 characters. Some CI systems and hosting dashboards cut long names off.
  • git switch -c needs Git 2.23 or later. On older versions use git checkout -b with the same name.
  • Only English letters and digits survive. A description written entirely in another script, such as Japanese, leaves just the ticket.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

From "Fix: crash when café name has "quotes"!" to a branch git accepts

Ticket titles are written for people, and people use punctuation. Paste one straight into git switch -c and git often refuses it. Take a real-looking bug: ticket PROJ-123, titled Fix: crash when café name has "quotes"!, on a bugfix branch. This page turns it into bugfix/PROJ-123-fix-crash-when-cafe-name-has-quotes. Here is what happens at each step, and which of git’s rules each step is there for.

First the type. bugfix is reduced to lower-case letters and digits and given a trailing slash. The slash is allowed in a branch name because git stores branches like files in folders; it is the only slash the page will produce. Next the ticket. PROJ-123 keeps its capitals, letters, digits and dash, but anything else is removed, so #42 would become 42. That matters because a branch name cannot contain some characters at all, and a few others, such as #, cause trouble in shells and URLs even where git allows them.

Then the description. The é in café is split into a plain e and an accent mark, and the mark is dropped, so café becomes cafe. Git would accept the é, but many tools, terminals and CI scripts handle non-ASCII names badly. The text is then lower-cased and cut wherever there is something that is not a letter or a digit. The colon after Fix, the two double quotes, the exclamation mark and every space become word breaks. What is left is seven words: fix, crash, when, cafe, name, has, quotes. Joined with dashes after the ticket, that is the name above, 51 characters long.

Each removed character was there for a reason. git check-ref-format, the command git uses to judge names, rejects spaces and the characters ~ ^ : ? * [ and backslash, because they have meanings in revision syntax and wildcards. It also rejects two dots in a row (used for ranges like main..feature), the pair @{ (used for reflog entries like main@{1}), a name ending in .lock (git’s own lock files) and a name ending in a slash. We ran the result through git check-ref-format --branch and it passed. The original title, with its space and colon, fails.

Length is the last step. The default limit is 60 characters, and the description is cut at a whole word to stay under it. A ticket called make the settings page remember the last tab the user opened across sessions becomes feature/PROJ-123-make-the-settings-page-remember-the-last, which is 57 characters; adding tab would have made 61. You keep the words that say what the branch is, and the ticket links to the rest.

The limits are simple to state. The page only keeps English letters and digits, so a description written in another script contributes nothing, and you should type a short English summary instead. It does not check whether the branch already exists in your repository; git will tell you that when you run the command. And it follows no single team’s convention, which is why the type, separator and case are yours to set.

Frequently asked questions

What characters are not allowed in a git branch name?

Spaces, ~ ^ : ? * [ and backslash, two dots in a row, the sequence @{, a leading dash, and an ending of / or .lock, among others. This page keeps only letters, digits, dashes, underscores and the one slash after the type, so none of those can appear.

Why is the ticket left in upper case?

Because tools such as Jira and Linear link a branch to its ticket by spotting the key, and some only match it in its usual form, PROJ-123. Turn on Lower-case the ticket if your team prefers everything lower case.

Should I use feature/ or feat/?

Whichever your team already uses. The prefix is only a convention; git attaches no meaning to it. Being consistent matters more than the word.

Can a branch name contain a slash?

Yes, and the type prefix uses one. Git treats it like a folder, which is why you cannot have both a branch called feature and one called feature/login.

Is what I type stored or sent anywhere?

No. The name is worked out by a few lines of JavaScript on this page.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.