🔗

Slug & Case Generator

Convert any text into URL slugs, camelCase, snake_case, PascalCase, and more — instantly.

🔗

Enter any text above to see it converted into all common naming formats.

About this tool

Last updated:

Generate a URL slug and other naming formats

This slug generator turns a title or phrase into a clean URL slug. At the same time it shows eight other naming formats, so you can use the same text for a variable name, a file name or a heading.

How to use it

  1. Type or paste your text into Input Text. It accepts up to 2,000 characters.
  2. All nine formats appear below as you type.
  3. Click Copy on the card you need, or Copy all formats to copy every one with its label.

The nine formats

FormatExample
URL Slug / Kebab Casemy-article-title
Snake Casemy_article_title
Camel CasemyArticleTitle
Pascal CaseMyArticleTitle
CONSTANT_CASEMY_ARTICLE_TITLE
Title CaseMy Article Title
Dot Notationmy.article.title
Path Format/my/article/title

URL Slug and Kebab Case give the same result. Title Case keeps small words such as "of", "the" and "and" in lowercase, except at the start.

How it works

The tool first cleans the text. Latin accents are removed, so "café" becomes "cafe", and letters such as ß, ø, ł and æ are replaced with ss, o, l and ae. Apostrophes are dropped, other symbols and emoji become word breaks, and extra spaces collapse. Hyphens and underscores also count as word breaks, which lets you convert one format to another. Then the words are joined in the style you need. It all runs in your browser.

Assumptions and limits

  • Non-Latin scripts such as Urdu, Arabic, Hindi or Chinese are kept as typed, not transliterated. The tool shows a note when this happens, and a browser will percent-encode such a slug in the address bar.
  • The slug has no length limit and does not remove stop words. Shorten it yourself if you want it brief.
  • If nothing remains after symbols are removed, the tool asks for some letters or numbers.

Frequently asked questions

What is a URL slug?

The readable last part of a page address, such as my-article-title in example.com/blog/my-article-title. It is usually lowercase with hyphens between words.

Are numbers kept?

Yes. Letters and numbers stay, so "Top 10 Tips" becomes top-10-tips.

Can I turn a camelCase name into snake_case?

Not reliably. The tool does not split words at capital letters, so "myVariableName" is treated as one word. Put spaces, hyphens or underscores between the words first.

More to explore

Related Text Tools

Browse all tools from the same category.

Showing 1-2 of 27