kebab-case converter

Paste a phrase or a name in any style and get kebab-case: all lowercase, words joined by hyphens. Ready for URLs, slugs, file names and CSS classes.

  • Free
  • No sign-up
  • Runs in your browser
case-kebab

100% private — your text is processed in your browser and never sent to any server.

How it works

Paste your text

Type or paste anything, one line or many.

Choose the style

The style is already selected for you on this page; change it any time.

Copy the result

It updates as you type. Copy it or download it as a text file.

How to convert text to kebab-case

To convert text to kebab-case, paste it in the box above and the result appears instantly in the output box, ready to copy. The style is already selected on this page. Every line is converted on its own, accents and other alphabets are respected, and nothing is uploaded because it all runs in your browser.

What it does

kebab-case writes every word in lowercase and joins them with hyphens, like meat on a skewer. Search engines read hyphens as word separators, which makes it the preferred style for URL slugs, and it is standard for CSS class names, HTML attributes, npm package names and file names in many projects.

Examples

Examples
BeforeAfter
My First Blog Postmy-first-blog-post
orderLineItemorder-line-item
user_first_nameuser-first-name
10 Tips for Better Sleep10-tips-for-better-sleep

Where it is used

  • URL slugs for blog posts, products and landing pages.
  • CSS class names and custom properties, such as card-header or --main-color.
  • File and folder names that stay portable across systems.
  • npm packages, Git branches and command-line flags.

Tips and things to check

  • Accents are not removed by this tool. For URLs with accented text, run the accent remover first so ü becomes u.
  • Punctuation and symbols are dropped, and numbers are kept, as in the last example.
  • Google recommends hyphens rather than underscores in URLs, because it reads hyphens as word breaks.

Private by design

Your text is processed in your browser and never sent to a server, so you can safely convert drafts, contracts, code or anything private.

Frequently asked questions

Why use hyphens instead of underscores in URLs?
Search engines treat a hyphen as a word separator, so my-first-post reads as three words, while an underscore may join them into one.
What is the difference between kebab-case and snake_case?
kebab-case joins words with hyphens and snake_case with underscores. Hyphens are ideal for URLs and CSS but are not valid in most programming language identifiers.
Does it also remove accents?
No. Accented letters are kept as they are. For clean URL slugs, remove the accents first with the accent remover tool.
Is this converter free?
Yes. There is no sign-up and no limit, and it runs in your browser, so nothing you type is sent to a server.
Does it work on a phone?
Yes. It works in any modern mobile browser, and the result updates as you type.