Convert Text to kebab-case
kebab-case (also called dash-case) uses lowercase letters separated by hyphens. It is the convention for CSS class names, URL slugs, HTML attributes, and CLI flags. This tool converts from any text format into clean kebab-case.
Open Case Converter →How to Convert Text to kebab-case
- Open the Case Converter tool on ToolPrime
- Paste your text in any format
- Select kebab-case as the target format
- Copy the hyphen-separated output
Common Use Cases
- Generate URL-friendly slugs from page titles
- Create BEM-style CSS class names from descriptions
- Convert component names to file names in Angular projects
- Build CLI flag names from camelCase config keys
Frequently Asked Questions
Is kebab-case the same as slug format?▾
Very similar. URL slugs are typically kebab-case but may also strip special characters and accents for maximum URL compatibility.
Can I convert kebab-case back to camelCase?▾
Yes, paste kebab-case text into the tool and select camelCase. The tool recognizes hyphens as word separators.