Online Slug Generator

Clean URL Slug Generator

Type one word or phrase (like: Article title or any web page title) per line in the textarea then click the button to generate your slug URLs:


Your result can be seen below.

SEO friendly slugs


Move to «Paste Code» for Save it

FAQ

What is a URL slug?

A URL slug is the part that comes at the very end of the URL and is actually the exact address of a specific page on your site, in other words - it is transliteration of the words in the url. Keeping your slugs descriptive and concise (1-5 words) can make your web page content understandable to the user and help improve SEO.

What is a URL slug Generator?

SLUG generator is a free online developer tool to instantly slugify words or text to an SEO-friendly and human-readable URL slug for better SEO optimization.

The URL slug also describes in a few words what the page or post is about; like the title of a blog post. It has an SEO-friendly format as each word in the URL slug is separated by a dash - so it can be read by both humans and crawlers.

How to generate URL slug online?

Using our tool you just need enter your text in the textarea, you can slugify multiple items by adding each item on a new line with our SLUG generator and click to the button "Generate" and you will get сlean URL slug.

How to generate a URL slug in PHP?

If the text for the url consists only of latin characters, then you can use the following function

function createSlug($string){
   return preg_replace('/[^A-Za-z0-9-]+/', '-', $string);
}
echo createSlug("this is the example page");
//returns "this-is-the-example-page"

But if the text for the url does not consist of Latin characters, then it is best to use something like ausi/slug-generator

How to generate a URL slug in JavaScript?

You can easily slugify words or text in JavaScript using the slug library from npm. It's a very handy JavaScript library that generates a URL slug from a string.

Example

Before:
hello wtools
привет wtools
こんにちは wtools
After:
hello-wtools
privet-wtools
kon-nichiha-wtools
Donate

Did you like this tool? You can donate to us. This will help us improve our free web tools.

Paypal