Git Branch Sanitizer
Convert a ticket title or phrase to a valid git branch name
Paste a ticket title or phrase to get a valid git branch name.
Git Branch Sanitizer
This tool turns human-readable text (e.g. ticket titles, feature names) into a valid git branch name. Git branch names have strict rules: no spaces, no consecutive dots, no leading dot or hyphen, and certain characters are disallowed. The sanitizer lowercases text, replaces spaces with hyphens, strips invalid characters, and keeps slashes for hierarchy (e.g. feature/login).
How it works
- Spaces and repeated spaces become a single hyphen.
- Invalid characters (~ ^ : * ? [ ] \ and others) are removed.
- Leading and trailing dots or hyphens are trimmed; the result never ends with
.lock. - Slash is allowed for branch hierarchy (e.g.
feature/add-login).
Use cases
- Jira / ticket titles: Turn "BUG-123 Fix null pointer" into
bug-123-fix-null-pointer. - Feature names: Convert "Feature: Add user login" to a valid branch name.
- Release branches: Sanitize "Release/v2.0" while keeping hierarchy.
For URL slugs (permalink, SEO), use the Slug Generator; git branch names follow different rules.
Added Mar 4, 2026
🔄 Workflow Suggestion
Try combining multiple tools for a complete workflow. For example: Notepad → Text Encryption → Save to Cloud or Date Calculator → Calendar → Countdown Timer
Related Tools & Recommendations
💡 You might also need
Slug Generator
Convert titles and phrases to URL-friendly slugs: lowercase, hyphenate, strip diacritics for URLs, CMS, and SEO
Text Case Converter
Convert text between different casing conventions
SemVer Comparator
Compare two semantic versions and check if a version satisfies a range (e.g. ^1.2.0). Free online version compare for developers.
📁 More Utilities Tools
JSON Viewer
Inspect JSON in an interactive tree. Expand and collapse nodes, copy paths, and view formatted JSON.
Data Generator
Generate realistic sample data for testing, development, and prototyping with customizable schemas
Guest Chat
Join daily conversations with other guests. Uses efficient JSONL format for messages and separate metadata files.
Send Feedback
We'd love to hear your thoughts! Your feedback helps us improve our tools and create a better experience for everyone.
Share Your Experience
Tell us what you think about this tool