Text to Slug
Convert any title or phrase into a URL-friendly slug
Everything runs in your browser. Your data never leaves your device.
Related tools
How to use
Type or paste a title, heading, or phrase. A clean slug appears on the right immediately. Toggle between hyphen and underscore separators as needed.
Paste your title
Enter any text — a blog post title, product name, or heading. Spaces and punctuation are handled automatically.
Choose a separator
Select kebab-case (hyphens) for URLs and most CMS slug fields, or snake_case (underscores) for file names and some framework conventions.
Copy the slug
Click the Copy button to copy the slug. It is ready to paste directly into a URL field, database entry, or file name.
Examples
Generating a blog post URL
A post titled '10 Tips for Better Sleep in 2024!' becomes '10-tips-for-better-sleep-in-2024' in kebab-case — all lowercase, no special characters, hyphens instead of spaces.
Creating an API endpoint name
An endpoint description like 'Get User Profile' becomes 'get-user-profile' in kebab-case or 'get_user_profile' in snake_case — either is a clean, conventional path segment.
About this tool
Convert any text into a clean, URL-safe slug by lowercasing, stripping accents, removing special characters, and joining words with a hyphen or underscore. Useful for generating post permalinks, product handles, and API endpoint names directly from titles. The output updates as you type. Nothing is uploaded.