Text to slug converter

Convert any text into a clean URL-friendly slug

Your text
0 characters
Separator
Case
Options
Your slug — click to select all
Slug will appear here as you type...
What is a URL slug and why does it matter?

A slug is the part of a URL that identifies a specific page in human-readable form. In yoursite.com/blog/my-first-post, the slug is my-first-post. Slugs replace the spaces and special characters in a page title with URL-safe characters, making the address readable for both people and search engines.

Well-crafted slugs matter for three reasons. First, SEO — search engines use URL words as ranking signals. A slug containing your target keyword is a lightweight but real signal. Second, usability — a readable URL builds trust and tells users what they're about to click before they click it. Third, shareability — clean URLs look better when shared in emails, social posts, and printed materials.

Most CMS platforms including WordPress, Shopify, Ghost, and Webflow generate slugs automatically from your page title. This tool lets you fine-tune that output — or generate slugs for custom applications, file names, database keys, or API endpoints.

Slug formats and where each is used
FormatExampleCommon use
kebab-casemy-blog-postURLs, HTML class names, npm package names
snake_casemy_blog_postFile names, Python variables, database columns
UPPER_SNAKEMY_BLOG_POSTEnvironment variables, constants
dot.casemy.blog.postJava package names, configuration keys
Title-CaseMy-Blog-PostDisplay labels, headings with separators
flatcasemyblogpostSome legacy systems, simple identifiers
SEO slug best practices

Use hyphens, not underscores. Google's John Mueller has confirmed multiple times that hyphens are treated as word separators in URLs, while underscores join words. my-blog-post gives you three separate ranking signals; my_blog_post is treated as one compound word.

Remove stop words. Words like "a", "the", "and", "of", and "in" add length without adding keyword value. "The Best Guide to SEO in 2025" becomes best-guide-seo-2025 — shorter and cleaner.

Keep it concise. Aim for under 60 characters. Very long slugs are truncated in search results and are harder to share. Focus on the primary keyword phrase.

Avoid changing slugs after publishing. If you change a slug on a live page, always set up a 301 redirect from the old URL to the new one. Broken links and lost backlinks are the hidden cost of slug changes.

Frequently asked questions
You might also need
About this tool

This slug converter handles special characters, replaces & with "and" and @ with "at", strips HTML tags, and supports accent transliteration (é→e, ü→u). Choose your separator, case style, and options — the result updates instantly. The All formats panel shows all seven slug styles at once so you can pick the right one for your context.