fixmint
EN

Convert text to kebab-case

kebab-case is selected. Paste your words, and copy the hyphenated result.

  • Runs on your device
  • No sign-up
  • Works offline after a visit
Case style
0lines changed
0characters

Title and Sentence case keep capitals of two to five letters, such as NASA, and common acronyms such as PDF. Letters follow English rules, so i becomes I, unless the Turkish option is on: then i becomes İ and I becomes ı.

This page opens the case converter with kebab-case selected. The words are lower case and joined by hyphens, so user first name becomes user-first-name. Hyphens are easy to read in a web address, and this style turns up in URLs, CSS class names and file names.

Before you use the result as a web address, check that it is short and that it matches the page it leads to. For variables in code, snake_case is the usual alternative.

How to change the case of text

  1. Paste or type your text in the box.
  2. Choose a case style above the result.
  3. Copy the converted text.

Questions

Why do hyphens suit a web address better than underscores?

Hyphens are commonly used to separate words in web addresses, so a link such as /user-first-name reads as separate words.

Can I use kebab-case for a file name?

Yes. The tool joins the lower-case words with hyphens, so user first name becomes user-first-name, ready to use as the base of a file name. Add the extension yourself.

Which words stay lower case in Title Case?

Short words such as a, an, the, and, but, of, in, on and to stay lower case, unless they are the first or last word of a line. Each line is treated as its own title.

Why do PDF and NASA stay in capitals?

Title and Sentence case keep words of two to five capital letters, such as NASA, as they are. A short list of common acronyms, such as PDF, HTML and API, is capitalised even when typed in lower case. Text typed entirely in capitals is treated as shouting, so only that list is kept.

How are camelCase and snake_case worked out?

Each line is split at spaces, punctuation and changes from lower to upper case, so XMLHttpRequest is read as XML, Http and Request. Each line is converted on its own, so a list of names gives one identifier per line.

Is my text sent anywhere?

No. Conversion runs in your browser, and nothing is stored after you close the tab.

Reviews

    No reviews yet. Be the first.

    Your rating

    Your email is never shown or kept.

    Read more