Share among Devs !

Here is your generated: Slug

Q. What is a Slug ?

A slug is a piece/identifier as a part which is associated with the URL such that it makes sense to the URL as well as to the post. Slug came from the WordPress community which has largely influenced webmasters to value it for its SEO benefits.

In short, if it requires to be defined it can be this "best-slug-generator" or anything else that defines your entire article's title in short, attaching - in between in place of white spaces.

Q. How to write a slug ?

For writing a good google friendly or can be called SEO friendly slug you need to take care of certain guidelines which can certainly rank you higher. Now let's take a look.

  1. Slugs in Sense:

    Only writing any kind of slug isn't going to land you in a good ranking, but you need to analyze your title first.
    Let's consider you're writing an article on "How to write a perfect article ?" and your slug is followed after the domain or subtopic.

    A slug must be small and crisp to read. The maximum allowed character ranges from 80 to 100. However, if slugs are defined well it helps in readability, which in turn increases CTC.
    So this can be written as "article-writing", "write-perfect-article" or something that's creative and comes to your mind. Try to remove first words in the slug-like why, when, what, how, to, a, the, is, etc.

  2. Remove Special Character:
  3. It is very important that a webmaster or the admin takes care of the slugs that no special character should be included as there's a negative impact on it and such characters to be avoided is must (), /, <, >, !, @, #, $, %, ^, &, *, +, =, \, [], {}, ?, _, . and also ,

    It is a bad practice to include such characters inside the slug. However, do not confuse slug with a title as you can write "#How to write a perfect article ?" or any other characters to get high CTR but not in a slug.

  4. Avoid Numbers:
  5. It might sound weird but technically it's a bad practice to include numbers as the URL becomes untidy to look at. Also not to forget slug should be beautiful and it can if it's short. Including dates or any other number can create confusion for the reader and also for the webmaster to search for the article.

    Suppose you've written an article on "5 best SEO experts" and after some time you want to add another one that means you also need to change to 6 in slug also, in turn, you need to redirect the old to the new URL. Instead, use "best-seo-experts" in your URL.

  6. Use Keywords:
  7. In every SEO guide, you might have found the word Keyword, and it's very important. To create a URL you should try to include the keyword you're targeting to win the position as it also signals search engines that the article is written on the specific topic.
    Now to include you a keyword just include the focus/main keyword in the slug. An alternative idea could be including the post's title in short.

    Let's take an example, suppose you have a topic on "How to do keyword research to rank higher ?" here, the focus keyword is "Keyword Research". So simply add it as "keyword-research" in the slug because the core idea is the same.

  8. To LowerCase:
  9. It is always recommended to convert the uppercase into lowercase and not just for beauty but to avoid conflicts with the server or to avoid URL encoding.
    In .htaccess, the URLs can be hidden, edited, or modified and in that case, if the RewriteRule which is used have the matching uppercases can encounter an issue. Also after the domain the slug is case-sensitive and to take a safer side, lowercase should be practiced.

    In such a case, an example is given:

    ✖ [BAD practice]

    ✔ [Good practice]

Q. How to create slug in sluggenerator ?

Now here in ToolBool it's pretty easy to convert a normal text to a slug and weather you write accordingly to the rules or not, the tool will fix it automatically and provide you with a cleaner version which is 100% SEO optimized and human readable slug and add it just after the domain.
Now to elaborate, we need to see some of the examples that you might use but the tool will fix it.

  1. When text has a special character
  2. removed special character from slug
  3. When text is Capitalized
  4. removed uppercase from slug
  5. When text is mixed
  6. removed uppercase and special chars from slug

Q. How sluggenerator works ?

ToolBool works under certain rules and guidelines. But here this tool usually follows search engine's recommendations and also have it's own core functionalities that should be known before you use it to remove any confusion while using it.

  1. Sluggen don't count special chars as new space
  2. chars are not considered in sluggen
  3. Sluggen only adds - between, when blank space is applied
  4. only spaces are considered and added -
  5. Sluggen consider char as empty and shows nothing
  6. removed empty spaces and chars
  7. Sluggen consider double or more dashes into one
  8. removed double dashes

Q. Are slugs and URLs the same ?

While talking of slugs many people get confused it with the url that is appeared at the top of the page and that's a reasonable question to ask as newbees faces these issues.

However let me tell you that URLs and slugs are completely different as slugs are part of the URLs but URLs are only URLs as a whole and that includes slugs in itself.
We need to understand first why these two are different and this confusion can be solved using this illustrated picture below.

illustration of difference between url and slug