What is a slug generator?
A slug generator converts a title, name, or ordinary string into a short text value suitable for a URL path. A page named How to Build a REST API might use how-to-build-a-rest-api as its slug.
This tool performs a deterministic text conversion in your browser. It does not rewrite the title with AI, score the result for SEO, or check whether the slug already exists on your website.
How to use the slug generator
- Type or paste a title or string into Input. Put each item on a separate line to generate multiple slugs.
- Keep the recommended hyphen separator or select an underscore.
- Open Options if you want to keep Latin accents or remove common English stop words.
- Copy the complete result from Output.
The output updates immediately whenever the input, separator, or Options change. No Generate button is required.
Slug generator example
Input:
How to Build a REST API in Node.jsCafé & Restaurant GuideOutput with the default settings:
how-to-build-a-rest-api-in-node-jscafe-restaurant-guideHow slugification works
For each input line, the tool converts letters to lowercase, optionally removes Latin accent marks, finds Unicode letters and numbers, and joins the remaining words with the selected separator. Runs of spaces and punctuation become one separator, and separators are not added at the beginning or end.
Numbers are preserved because years, versions, and product models can carry useful meaning. The tool does not impose a maximum slug length or silently remove numbers.
Hyphens vs underscores in URL slugs
Hyphens are the default because they clearly separate words in a URL and are the common choice for public web pages. Underscores remain available for codebases, route conventions, or content systems that require them.
Changing the separator updates every generated line without changing the source text.
Should URL slugs be lowercase?
Lowercase output avoids multiple path spellings that differ only by capitalization. This generator always converts letters to lowercase and does not add a case toggle.
Should you remove stop words?
Words such as the, a, and, of, and to can make some slugs longer without adding much context. Removing them is optional because those words can still matter in names, phrases, or established URLs.
When enabled, the option removes only complete words from a fixed common English list. It does not remove matching text inside another word, so theatre remains theatre.
Can URL slugs contain Unicode characters?
Yes. The generator preserves non-Latin writing systems instead of forcing every slug to ASCII. For example, 中文 标题 becomes 中文-标题 with the default separator.
Remove Latin accents handles common accented Latin letters such as é and ã. It is not a complete transliteration system and does not convert Chinese to Pinyin, Japanese to Romaji, or other scripts to Latin spelling.
Can I slugify multiple strings?
Yes. Enter one item per line and the output keeps the same line order. Empty input lines remain empty in the output, which keeps batch results aligned with their source lines.
Privacy
Input, conversion, Options, and clipboard copying stay in your browser. The tool does not upload the input text, place it in the page URL, or send it to an AI service. Options are saved in browser storage for later visits.
Slug generator FAQ
Does this tool make every slug unique?
No. Uniqueness depends on the routes already used by your website or CMS. Check the generated slug against your own content before publishing it.
Does this tool choose SEO keywords?
No. It converts the words you provide without inventing, removing, or ranking keywords beyond the optional fixed stop-word list.
Can I remove numbers or set a maximum length?
No. Numbers are preserved and no automatic length limit is applied. Edit the source text if you need a shorter or number-free slug.