Slug Generator
Convert any text to clean, SEO-friendly URL slugs with diacritics stripping, custom separators, and bulk mode
Interactive tool
Options
Input
0 charsOutput
Read-onlyWhat is a Slug Generator?
A slug generator converts a title or any free-form text into a clean, URL-friendly identifier called a slug. Slugs are the human-readable part of a URL after the domain: for example, "/blog/how-to-bake-bread". Good slugs are lowercase, short, descriptive, and use hyphens to separate words. This tool produces slugs that follow common SEO best practices and supports bulk conversion of many titles at once.
How to Use This Slug Generator
- 1Paste a title or several lines of text into the input
- 2Choose your separator (hyphen, underscore, or dot)
- 3Pick a casing style: lowercase is recommended for SEO
- 4Toggle bulk mode to convert one slug per line
- 5Optionally strip diacritics, remove stop words, or limit length
- 6Copy the generated slugs or download them as a text file
Key features
Diacritics stripping
Convert accented characters like é, ñ, and ü to their ASCII equivalents
Bulk mode
Paste multiple titles and get one slug per line in a single click
Custom separators
Switch between hyphen, underscore, or dot to match your CMS conventions
Stop word removal
Optionally drop common English stop words to keep slugs short
Length limit
Cap slug length and trim cleanly at the boundary, no orphan separators
Live URL preview
See the full URL render with a configurable base path
SEO warnings
Surface long slugs and empty results before you publish them
100% private
Everything happens locally in your browser, with no upload
Why Use Clean URL Slugs?
Search engines and users both reward short, readable URLs. A clean slug helps with click-through rate from search results, makes links easier to share, and signals topical relevance to crawlers. Sloppy slugs with spaces, uppercase, or special characters can break links, cause duplicate-content issues, and harm rankings.
Common use cases
- Generating permalinks for blog posts and articles
- Building product URLs in an e-commerce catalog
- Migrating CMS content where titles must become URL paths
- Creating clean filenames from human-readable headings
- Normalizing titles across multiple languages with diacritics
- Producing API endpoint identifiers from resource names
Hyphen vs Underscore, which separator should I use?
Hyphens are the SEO-recommended choice. Google and most search engines treat hyphens as word separators, but underscores are often treated as part of a single word. Use underscores only when an internal system requires them.
How long should a slug be?
- Aim for under 60 characters where possible
- Drop filler words like "and", "the", "of"
- Keep the most meaningful keywords near the start
- Avoid stuffing keywords purely for SEO
- Match the slug to the page title intent
Tips & best practices
Lowercase by default
Mixed-case URLs can resolve as duplicate content on case-sensitive servers. Stick to lowercase unless you have a strong reason not to.
Strip diacritics for international slugs
Even though browsers support Unicode in URLs, stripping diacritics keeps links readable in plaintext, search snippets, and analytics dashboards.
Avoid changing slugs after publishing
Changing a published slug breaks existing links and SEO equity. If you must change it, set up a 301 redirect from the old slug to the new one.
Use bulk mode for migrations
Paste a column of titles from a spreadsheet, generate slugs in one pass, and import them back into your CMS without per-row clicks.
Preview the full URL
Configure the base URL field to match your site so you can spot mistakes in context before publishing.
Privacy & security
This slug generator runs entirely in your browser. Nothing is sent to any server, stored on disk, or shared with third parties. It's 100% private and works offline once the page is loaded.
Related tools
- XML Sitemap Generator
Build a sitemaps.org-conformant XML sitemap from a URL list. Auto-paginates at 50,000 URLs or 45 MB, generates a wrapping sitemap-index, downloads as a single file or a multi-file ZIP.
SEO Tools
- CSP Generator
Build a Content-Security-Policy with a per-directive visual editor. Outputs the header form and the <meta http-equiv> form, with live evaluation against Google CSP Evaluator heuristics.
SEO Tools
- UTM Builder
Build trackable campaign URLs with UTM parameters for Google Analytics, GA4, and other tracking tools
SEO Tools
- XML Sitemap Validator
Validate XML sitemaps against the sitemaps.org schema. Checks URL count, file size, lastmod ISO 8601, changefreq enum, and priority range. Recursively validates sitemap-index files.
SEO Tools
- Video to GIF Converter
Turn any mp4, webm, mov, or mkv into a high-quality animated GIF: fully in your browser via ffmpeg.wasm. Pick a time range, FPS, width, and dither; we generate an optimised palette in a single click.
Video Tools
- Audio Converter & Compressor
Convert and compress mp3, aac, ogg, opus, wav, and flac audio in your browser via ffmpeg.wasm. Pick a target format, bitrate, sample-rate, and channel mode, and see before / after waveforms side by side.
Audio Tools
Frequently Asked Questions
What is a URL slug?
A slug is the part of a URL that uniquely identifies a page in a human-readable form. For example, in "https://example.com/blog/how-to-bake-bread", "how-to-bake-bread" is the slug. Slugs typically consist of lowercase letters, numbers, and hyphens.
Should I use a hyphen or underscore as a separator?
Hyphens are the SEO-recommended choice. Google treats hyphens as word separators in URLs, while underscores are often treated as part of a single word. Use hyphens unless your platform specifically requires underscores.
Should slugs be lowercase?
Yes. Many web servers are case-sensitive, so /About and /about can resolve as two different pages, causing duplicate content issues. Lowercase slugs are universally compatible.
How long should a slug be?
Aim for under 60 characters when possible. Shorter slugs are easier to read in search results, easier to share, and tend to rank slightly better. Use the length limit option to enforce this automatically.
Does Google translate slugs?
No, search engines do not translate slugs. If you publish content in multiple languages, consider keeping slugs in the language of the page rather than always translating to English.
Is my data sent to a server?
No. This slug generator runs entirely in your browser. Nothing is uploaded, logged, or stored anywhere outside your device.