Slug Generator: Title to URL Slug
Type a blog post, product or page title and get a clean URL slug: lower case, words joined by hyphens, accents and punctuation removed. One title per line gives one slug per line.
Your slug
Optional. Type your site and folder to see the full address above. Nothing is checked or saved.
A good slug
- Describes the page in 3 to 6 words.
- Uses lower case and hyphens:
learn-javascript. - Has no dates you will need to change, unless the page is about that year.
- Stays the same once published (or gets a 301 redirect).
How to use the slug generator
- Type or paste a title, such as a blog post, product or page name. For many slugs at once, put one title on each line.
- The slug appears as you type: lower case, words joined by hyphens, accents removed (é becomes e, ß becomes ss), "&" written as "and", and other punctuation dropped.
- Optional: set a Max length (the slug is cut between words, never in the middle of one), switch to underscores, or remove small words such as "the", "a" and "to". Add your site's address under URL preview to see the full link.
- Press Copy slug, or Copy all for the list.
Everything runs in your browser. Nothing you paste or type is uploaded or saved.
Frequently asked questions
What is a URL slug?
A slug is the part of a web address that names one page, written so people and search engines can read it. In kodyfier.com/blog/how-to-learn-javascript, the slug is how-to-learn-javascript. A good slug is short, lower case, uses hyphens between words and describes the page, which helps visitors trust the link before they click it.
Should a slug use hyphens or underscores?
Use hyphens. Google's URL structure guidelines recommend hyphens rather than underscores to separate words, because a hyphen clearly marks where one word ends and the next begins, for people and for search engines: learn-javascript reads as two words. Underscores are still common in file names and in some programming frameworks, so the option is there.
Should I remove stop words like "the" and "a" from slugs?
It is optional. Removing them makes a long slug shorter (how-to-learn-javascript-in-2026 becomes learn-javascript-2026), but they do not hurt rankings, and sometimes they are needed for the meaning. A practical rule is to keep the slug under about 60 characters and to remove small words only when it is too long. Once a page is published, keep its slug, or add a 301 redirect if you must change it.