kebab-case converter
Convert your text to kebab-case instantly with our free online tool. This simple and efficient converter transforms your input into the widely used kebab-case format.
Why is it called kebab-case?
kebab-case is a text case format where words are written in lowercase and separated by hyphens (-
). It gets its name because the hyphens resemble the shape of a skewer, much like pieces of food on a kebab.
Unlike camelCase or PascalCase, kebab-case uses hyphens instead of spaces or capitalization to separate words. It is especially useful for URLs and filenames.
Learn more about kebab-case on Wikipedia.
Common use cases for kebab-case
- URLs: Many websites use kebab-case for SEO-friendly and readable URLs (e.g.,
example.com/my-new-article
). - CSS Class Names: In web development, kebab-case is often used for CSS classes (e.g.,
.button-primary
). - File Naming: Some developers prefer kebab-case for filenames to improve readability and compatibility across systems.
What are other names that people use for this casing?
Related casings
How to use the kebab-case converter
Using our kebab-case converter is simple:
- Enter your text into the input box.
- Click the "Convert" button.
- Copy the converted text and use it in your projects.
FAQ
Is kebab-case case-sensitive?
No, kebab-case is always written in lowercase with hyphens separating words.
Why is kebab-case better for URLs?
kebab-case improves readability, SEO performance, and avoids issues with spaces in URLs.
Can I use kebab-case for variable names?
Most programming languages do not allow hyphens in variable names, so kebab-case is generally used for file names and CSS class names rather than variables.
Try our kebab-case converter now and transform your text effortlessly!