How I make URL slugs from titles
· 2 min read
A slug turns a title into a URL-friendly piece of text, usually lowercase words separated by hyphens.
The Slugify tool helps with the mechanical part, but I still check the result before using it somewhere real.
The simple idea
A slug turns a title into a URL-friendly piece of text, usually lowercase words separated by hyphens.
I use the tool to make the transformation visible: input on one side, output on the other, and a quick sanity check before I copy anything.
Step 1: Paste the title
Paste the title.
Step 2: Choose lowercase output
Choose lowercase output.
Step 3: Use hyphens as separators for readability
Use hyphens as separators for readability.
Step 4: Remove or normalize punctuation and accents
Remove or normalize punctuation and accents.
Step 5: Keep the slug short but meaningful
Keep the slug short but meaningful.
Step 6: Avoid changing published slugs without redirects
Avoid changing published slugs without redirects.
Step 7: Check that the slug does not reveal private draft information
Check that the slug does not reveal private draft information.
My checklist
Before I trust the result, I check:
- Paste the title.
- Choose lowercase output.
- Use hyphens as separators for readability.
- Remove or normalize punctuation and accents.
- Keep the slug short but meaningful.
- Avoid changing published slugs without redirects.
- Check that the slug does not reveal private draft information.
Small utilities are useful because they remove repetitive work. They are safest when the output is still reviewed.
Comments
Comments are welcome — please read the comment policy first. Powered by giscus and GitHub Discussions.