kebab-case Converter
Convert any phrase to kebab-case: all lowercase with words joined by hyphens, e.g. "User First Name" → "user-first-name". Common in URLs, CSS class names and file names.
About this tool
Convert any phrase to kebab-case: all lowercase with words joined by hyphens, e.g. "User First Name" → "user-first-name". Common in URLs, CSS class names and file names.
Example
Input: User First Name
Output: user-first-name
How to use
Paste or type your text into the box above, then read or copy the result. Everything runs privately in your browser, your text is never uploaded to a server.
How to use this tool
- Paste or type the phrase you want to turn into kebab-case.
- Check that the text is the one you want to use for a URL, CSS class, or filename.
- Read the converted kebab-case result shown by the tool.
- Copy the output and paste it into your code, slug, class name, or file name.
Step by step, what happens
- The tool reads your input as plain text, not as code, so it can handle normal phrases and labels.
- It splits the phrase into words, then converts everything to lowercase.
- It joins the words with hyphens, which creates kebab-case.
- It keeps the result simple and consistent for use in URLs, CSS classes, and filenames.
Worked example
If you want a clean CSS class name from a normal label, this tool turns it into kebab-case.
Input: User First Name
- The tool takes the three words in the input and treats them as separate parts.
- It changes each word to lowercase and connects them with hyphens.
- The final result is ready to copy into your code.
Output: user-first-name
Tips and common mistakes
- Use plain words in the input if you want a predictable result, because punctuation and symbols can affect how parts are separated.
- If you are making a URL slug or CSS class, review the output before pasting it so it matches your naming style.
- Do not add extra spaces unless you want them treated as separators between words.
- If your source text has special characters, check the converted result carefully to make sure it still reads well.
Frequently asked questions
What is kebab-case?
kebab-case writes text in lowercase with hyphens between words, like my-page-title. It is popular for URLs and CSS classes.
Why use kebab-case in URLs?
Search engines treat hyphens as word separators, so kebab-case URLs are readable and SEO-friendly.
What happens to punctuation?
Punctuation and symbols are removed; only letters and numbers remain, joined by hyphens.
More Text Tools Tools
Explore related calculators in this category
Case Converter
Convert text to UPPERCASE, lowercase, Title Case, Sentence case, and more, instantly and free.
camelCase Converter
Convert any text or phrase to camelCase instantly. Perfect for variable names in JavaScript, Java, and more.
snake_case Converter
Convert text to snake_case (underscore-separated lowercase) instantly, great for Python variables and database columns.
Slug Generator
Generate clean, SEO-friendly URL slugs from any title or text. Lowercase, hyphen-separated, no special characters.
You Might Also Like
Popular tools from other categories
.htaccess Generator
Generate common .htaccess rules, force HTTPS, www redirect, and caching, with checkboxes.
1031 Exchange Calculator - Free Online
Free Calculate tax deferral in a 1031 exchange. Step-by-step solutions and formulas included. Fast, accurate, and free, with formula and example.
4% Rule Calculator
Find the retirement nest egg you need using the 4% safe-withdrawal rule.
70% Rule Calculator
Calculate max offer using the 70% rule for flips.
Can't Find the Right Calculator?
Try our AI Math Solver, type any problem in plain English and get instant step-by-step solutions.