Slug Generator
Convert any title into a clean, URL-friendly slug.
the-quick-brown-fox-10-amazing-tricks
What's a slug? A slug is the URL-friendly version of a page title, used in permalinks. For example, a post titled “Hello World!” becomes hello-world in the URL.
Generate SEO-friendly URL slugs from any page title online
A well-crafted URL slug is one of the smallest but most impactful on-page SEO factors. It signals to search engines what a page is about, appears in search result snippets, and is shared by users in social posts and messaging. Manually cleaning titles: stripping punctuation, replacing spaces, lowercasing, transliterating accents: is tedious and error-prone when you have dozens of pages to handle.
AlteredIdea's slug generator automates the full transformation pipeline: transliteration, case normalisation, separator choice, and length enforcement. The live preview updates as you type, so you can experiment with different options and copy the result in seconds.
Step-by-step guide
- 1Enter your page title
Type or paste the full page title, blog post heading, or product name into the input field. - 2Choose a separator
Select hyphen (recommended for SEO), underscore, or dot as the word separator in your slug. - 3Set case and max length
Choose lowercase (default), uppercase, or preserve original case. Set a maximum character length to avoid overly long URLs. - 4Toggle strip numbers if needed
Enable 'Strip numbers' to remove digits from the slug, useful for version-agnostic permalinks. - 5Copy and use the slug
Click Copy to grab the generated slug and paste it directly into your CMS, code, or web framework.
Related Tools
Word Counter
Live word, character, sentence, and paragraph counts. Reading time, speaking time, top word frequency, and more.
Case Converter
Instantly convert text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, and kebab-case.
Text Sorter
Sort lines alphabetically, by length, randomly, or in reverse. Remove duplicates, trim whitespace, and eliminate empty lines.
Text Cleaner
Strip extra whitespace, remove special characters, normalize line endings, and clean up messy copy-pasted text.
Frequently Asked Questions
- What is a URL slug?
- A URL slug is the human-readable part of a URL that identifies a specific page. For example, in 'https://example.com/blog/seo-tips', the slug is 'seo-tips'. Slugs should be short, descriptive, and use hyphens between words.
- Why are hyphens preferred over underscores in slugs?
- Google treats hyphens as word separators in URLs, which improves keyword recognition. Underscores historically were not treated as separators, though Google has improved handling of them. Hyphens remain the standard recommendation for SEO-friendly URLs.
- Does the slug generator handle accented characters?
- Yes. The tool transliterates accented Latin characters to their ASCII equivalents (e.g. é → e, ü → u, ñ → n) so your slugs remain URL-safe without percent-encoding.
- What is the recommended maximum slug length for SEO?
- Most SEO guides recommend keeping slugs under 75 characters. Very long URLs can be truncated in search results and are harder for users to read and share. The default max length in this tool is 100 characters.
- Should I include stop words in slugs?
- It depends on readability vs. brevity. Removing stop words like 'the', 'a', and 'and' makes slugs shorter, but sometimes keeping them improves clarity. The tool preserves stop words by default so you can edit manually if needed.
- Can I generate slugs for non-English titles?
- The transliteration table covers common Western European accented characters. For titles in non-Latin scripts, characters that cannot be transliterated are removed, which may result in an empty or very short slug.
- What happens when the title has special characters like &, @, or #?
- Special characters that are not alphanumeric are replaced by the chosen separator. Consecutive separators are collapsed into one, and leading/trailing separators are trimmed.
- Does the tool work for generating Python module names or file names?
- Yes. Select underscore as the separator and lowercase case to produce Python-style identifiers or safe file names. Enable 'Strip numbers' if you need names that don't start with a digit.
- Is the slug generator free?
- Yes, completely free with no account required. All processing happens in your browser: no data is sent to any server.
AlteredIdea vs alternatives
vs Google Docs / Word: Word processors have no slug generation feature. You would need to manually lowercase, replace spaces, and strip punctuation: this tool does it all instantly.
vs browser extensions: No install required, and the tool runs offline in your browser without any extension accessing your tab history.
vs paid SEO tools: Free, instant, no account needed. Generate clean slugs with transliteration and configurable separators at no cost.