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.
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
- Type or paste your text into Input Text. It accepts up to 2,000 characters.
- All nine formats appear below as you type.
- Click Copy on the card you need, or Copy all formats to copy every one with its label.
The nine formats
| Format | Example |
|---|---|
| URL Slug / Kebab Case | my-article-title |
| Snake Case | my_article_title |
| Camel Case | myArticleTitle |
| Pascal Case | MyArticleTitle |
| CONSTANT_CASE | MY_ARTICLE_TITLE |
| Title Case | My Article Title |
| Dot Notation | my.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.
Related Text Tools
Browse all tools from the same category.
Word Counter
Words, characters, sentences, and paragraphs
Open toolText Case Converter
Upper, lower, title, and sentence case
Open toolShowing 1-2 of 27