Compare these two web addresses:
example.com/2026/10/05/p=4821-final-copy-2/
example.com/seo-friendly-url-slugs/
You already know what the second page is about, and you would be far happier to click it or share it. The part that makes the difference is called the slug, and in WordPress you can set it in seconds.
This guide explains what a URL slug is, how to write SEO-friendly URL slugs, how to change them safely in WordPress and what to avoid. It also includes a free slug generator you can use for every post.
Quick answer
A URL slug is the last part of a web address that identifies a specific page. An SEO-friendly slug is short, descriptive, written in lowercase and uses hyphens between words, for example /seo-friendly-url-slugs/. Set it before you publish. If you change the slug of a page that is already live, make sure the old address redirects to the new one.

What Is a URL Slug?
A URL has several parts. The slug is the part you choose for each post or page.
| Part | Example | What it is |
|---|---|---|
| Protocol | https:// | How the browser connects |
| Domain | www.example.com | Your website's address |
| Path | /blog/ | A folder, category or date, if your site uses one |
| Slug | seo-friendly-url-slugs | The name of this specific page |
WordPress creates a slug automatically from your post title. A title such as "How to Write SEO-Friendly URL Slugs in WordPress (With Examples)" becomes a long slug containing every word, which is why it is worth editing by hand.
Slug vs permalink
The permalink is the full, permanent address of a page. The slug is only the final part of it. Your permalink structure, set once for the whole site, decides what comes before the slug.
Why URL Slugs Matter
Clarity for readers
A readable address tells people what to expect before they click.
A small SEO signal
Words in the URL give search engines a light hint about the topic.
Easier sharing
Short addresses look cleaner in messages, emails and social posts.
It is worth being realistic. Google describes words in a URL as a very lightweight factor, so a perfect slug will not lift a weak page. Good slugs matter mostly because they help people, and because they are painful to change later.
Create a Slug With the Generator
Type your post title below. The tool converts it to a clean slug, and you can remove common filler words to make it shorter.
URL Slug Generator
Type a post title to get a clean slug. Nothing you enter is saved or sent anywhere.
How to Write an SEO-Friendly URL Slug
- Start from your focus keyword. The slug should describe the page in a few words.
- Keep it short. Three to five words is a good target.
- Use lowercase letters only.
- Separate words with hyphens. Google recommends hyphens instead of underscores.
- Remove filler words such as "a", "the", "and" or "to" when the meaning stays clear.
- Leave out dates and numbers that will change. "best-free-ai-tools" ages better than "7-best-free-ai-tools-2026".
- Use plain characters. Avoid symbols, spaces and special characters.
- Make each slug unique on your site.
Good and bad examples
| Post title | Poor slug | Better slug |
|---|---|---|
| How to Back Up a WordPress Site: 3 Reliable Methods for Beginners | how-to-back-up-a-wordpress-site-3-reliable-methods-for-beginners | back-up-wordpress-site |
| 7 Best Free AI Tools for Beginners (2026 Guide) | 7-best-free-ai-tools-for-beginners-2026-guide | best-free-ai-tools |
| What Is an XML Sitemap? | ?p=311 | what-is-xml-sitemap |
| Elementor Review | Elementor_Review_NEW | elementor-review |

Should you remove every small word?
Not always. Remove a filler word only when the slug still reads clearly.
how-to-install-wordpress-themeandinstall-wordpress-themeare both fine.what-is-xml-sitemapis clearer thanxml-sitemapif the page is a definition.
Readability comes first. A slug is for people as well as search engines.
How to Change a Slug in WordPress
For a new post
- Open the post in the editor.
- In the right sidebar, open the Post tab.
- Click the Link or URL setting. It appears once the post has a title and has been saved as a draft.
- Type your new slug in the field.
- Save the draft or publish.
For a post that is already published
Think before you change a live URL
Changing the slug of a published post changes its address. Links from other sites, bookmarks and search results still point to the old one. Only change it when there is a clear benefit, and always make sure the old URL redirects.
- Edit the slug in the same Link setting and update the post.
- Open the old address in a private browser window.
- Confirm that it sends you to the new address. WordPress usually redirects a changed post slug automatically, but check it yourself.
- If it does not redirect, add a 301 redirect using a redirection plugin or your SEO plugin's redirect feature.
- Update internal links on your own site that still use the old address.
Understanding Permalink Structures
Go to Settings → Permalinks to see how your addresses are built.
| Structure | Example | Notes |
|---|---|---|
| Plain | /?p=123 | Not readable. Avoid. |
| Day and name | /2026/10/05/sample-post/ | Readable, but long and shows the date |
| Month and name | /2026/10/sample-post/ | Shorter, still dated |
| Post name | /sample-post/ | Short and clean. The most popular choice for blogs. |
| Custom | /blog/sample-post/ | Useful for larger sites |
Changing the structure on a live site
The permalink structure affects every post at once. If you change it after publishing, all your existing addresses change. Do this only with a full backup and redirects from every old URL to the new one, or leave the structure as it is. A dated structure is not a ranking problem.
Short Slugs: Pros and Cons
Pros
- Easier to read, remember and share
- Less likely to be cut off in search results
- Stay accurate when you update the article
Cons
- Too short can be vague, such as /guide/
- Removing too many words can change the meaning
- You may need to think harder to keep each slug unique
Common Mistakes to Avoid
- Leaving the automatic slug when the title is long.
- Stuffing keywords, as in
best-seo-tips-seo-guide-seo-tricks. - Using underscores or capital letters.
- Including a year in an article you plan to keep updated.
- Changing live URLs without redirects.
- Using the same words for two posts, which leads WordPress to add "-2" to the second one.
- Changing slugs repeatedly. Choose once and leave it.
Tips for Beginners
- Set the slug before you press Publish. It is the easiest time to get it right.
- Say the slug out loud. If it sounds like a clear label for the page, it works.
- Keep a simple list of your slugs so you do not target the same topic twice.
- When in doubt, use your focus keyword as the slug.

Frequently Asked Questions
What is a slug in WordPress?
It is the editable part of a post or page address that identifies that specific page, such as "on-page-seo-checklist" in a longer URL.
How long should a URL slug be?
There is no official limit, but three to five words is a practical target. Shorter slugs are easier to read and share.
Should I use hyphens or underscores?
Hyphens. Google recommends using hyphens to separate words in URLs because they are easier for both people and search engines to read.
Does the URL slug affect SEO?
Slightly. Google treats words in a URL as a very light signal. The bigger benefits are clarity for users and cleaner links.
Can I change a slug after publishing?
Yes, but the old address must redirect to the new one. WordPress often handles this for changed post slugs, though you should always test it.
Should my slug match my title exactly?
No. The slug should be a shorter version that keeps the main topic. The title can be longer and more descriptive.
Conclusion
A good URL slug is short, descriptive, lowercase and separated by hyphens. It takes a few seconds to set, and it makes your pages clearer in search results, easier to share and simpler to manage.
Choose the slug before you publish, base it on your focus keyword, and avoid changing it afterwards. If you ever must change a live address, redirect the old one and update your internal links.
Create your next slug now
Paste the title of the post you are working on into the slug generator above, copy the result and set it in WordPress before you publish.
Related Guides on ThemeZone
How to Install a WordPress Theme
Set up your site the right way from the start.
How to Change Your WordPress Theme Without Losing Content
Make site changes without breaking things.
How to Use AI to Write Blog Posts That Are Original and Helpful
Create content worth a clean URL.



