Slug Generator
URL-safe slug from text
What is Slug Generator?
Turn any piece of text into a URL-safe slug — lowercased, diacritics stripped (Héllo → Hello), spaces and punctuation collapsed to your chosen separator (hyphen, underscore, or dot). Optional length cap truncates at a word boundary rather than mid-word. Great for blog URLs, filenames, IDs, and anywhere you need a clean machine-readable token.
How do I use Slug Generator?
- Paste or type the source text.
- Choose a separator (-, _, or .) and max length.
- Toggle "Strip diacritics" and "Lowercase" as needed.
- Copy the slug.
When should I use Slug Generator?
Slug Generator is right for URL-safe tokens. For general case transforms (camelCase, snake_case, etc.), Case Converter is more flexible. For a unique ID with no tie to the source text, use UUID Generator.
What is a URL slug?
The human-readable part of a URL — "my-first-post" in /blog/my-first-post. Good slugs are lowercase, hyphen-separated, and short.
Does the generator handle unicode?
Yes. Accents are transliterated (café → cafe), and non-Latin scripts are kept or romanised depending on the rule you pick.
What is the recommended max length?
Under 60 characters is a good rule of thumb. Google does not truncate slugs, but users do — short slugs are more shareable and easier to type.
Is my file uploaded anywhere?
No. Everything runs in your browser. Your files never leave your device, and there is no server component for this tool.