Toolkit Hub

Slug Generator

Turn titles into clean, URL-safe slugs.

Slug Settings

Your slug will be generated from this text.

Enter text to generate a slug

What is the Slug Generator?

A slug is the readable part of a URL that identifies a page, such as /blog/how-to-format-json. A slug generator lowercases a title, removes accents and punctuation, and joins the remaining words with hyphens so the result is safe in a URL and readable to both people and crawlers.

Frequently asked questions

Should slugs use hyphens or underscores?

Hyphens. Google treats a hyphen as a word separator and an underscore as a joining character, so how-to-format-json reads as three words while how_to_format_json can read as one. Hyphens are the long-standing recommendation.

How long should a URL slug be?

Short enough to read at a glance and long enough to describe the page — typically three to six words. Drop filler words like "the" and "a", keep the terms someone would actually search for, and never change a published slug without redirecting the old one.

Related Generators

Slug Generator is one of 6 tools in Generators on Toolkit Hub, a free collection of browser-based utilities. It requires no account and no installation. Browse all tools.