Slug Generator
Type or paste a title to build a slug.
A slug is the readable part of a URL that identifies a page, like the part after the last slash in a blog address. This tool turns any title or phrase into a clean slug: it lowercases the text, converts spaces to hyphens, removes punctuation, collapses repeated separators, and trims stray separators from the ends. Everything runs in your browser, so your text never leaves your device.
How to use
- Paste or type your title into the text box.
- Pick a separator: hyphen (the common choice for URLs) or underscore.
- Read the generated slug in the output box below.
- Press Copy slug to copy it, or Reset to start over.
Examples
- "My First Post! (Draft)" becomes my-first-post-draft
- "Top 10 Tips for 2026" becomes top-10-tips-for-2026
- "Café del Mar" becomes cafe-del-mar
FAQs
- What is a URL slug?
- A slug is the human readable portion of a web address that names a specific page. For example, in a blog URL the slug is usually the last segment, made of lowercase words joined by hyphens.
- Why are hyphens preferred over underscores?
- Search engines treat hyphens as word separators, so words in a hyphenated slug are read as distinct terms. Underscores are often joined into a single token. Hyphens are the safer default for URLs, but this tool offers both.
- What happens to accented or non English letters?
- Accented Latin letters are converted to their closest plain form, so an accented e becomes e. Characters with no Latin equivalent, such as emoji, are dropped along with the surrounding punctuation.
- Does my text get sent anywhere?
- No. The slug is built entirely in your browser using a pure function. Nothing is uploaded or stored.
- What if my text has no letters or numbers?
- If the input is only punctuation, symbols, or emoji, there is nothing to build a slug from, so the tool shows a clear message instead of returning an empty result.
Related tools
- Case ConverterConvert text between UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case, and kebab-case instantly in your browser.
- URL EncoderPercent encode and decode text for URLs in your browser. Toggle direction, copy results, and see clear errors on malformed input.
- Remove Line BreaksRemove line breaks from text online. Replace them with a single space or nothing, collapse extra spaces, and trim. Free and private.
- Word CounterCount words, characters, sentences, paragraphs, and reading time for any text. Live, private, and free in your browser.
- Lorem Ipsum GeneratorGenerate lorem ipsum placeholder text by paragraphs, sentences, or words. Copy it instantly for mockups, layouts, and design drafts.
- Remove Duplicate LinesRemove duplicate lines from text online. Optional case insensitive matching and whitespace trimming, with a count of removed lines.