ToolNest
100% Free

Slug Generator

Convert any text into a URL-friendly slug.

Input Text

URL Slugs

Tool options

Slug Options

Preserve the original casing of the input instead of converting to lowercase

What is a Slug Generator?

A slug is the human-readable part of a URL — /blog/how-to-brew-coffee instead of /blog/203 — and getting one right by hand is fiddly: lowercase everything, strip accents, replace spaces and underscores with hyphens, remove punctuation, and make sure no stray hyphen survives at either end. This tool applies all of those rules at once. Paste one title or one hundred — each line becomes its own slug.

It handles the details that make hand-rolled regex slugs ugly. Accented characters are decomposed and stripped, so café becomes cafe and crème brûlée becomes creme-brulee, output you can safely put in a URL. Punctuation, emoji and symbols are removed rather than percent-encoded, and runs of spaces, hyphens and underscores collapse into a single hyphen. A case-sensitive option preserves capitalization for the rare CMS that insists on it, though lowercase is the convention: URLs are case-sensitive, and consistent slugs prevent duplicate-content confusion.

The per-line behavior is the time-saver for real work: paste a list of article titles and get a matching list of slugs for a bulk import or a sitemap. Titles with question marks or ampersands are no problem either — "Q&A: What changed?" comes out as q-a-what-changed, with the punctuation gone and the words intact. Everything runs locally in your browser, the text never leaves your machine, and the slugs regenerate instantly as you edit the options.


Slug Generator Examples

Click to try!

Slug (lowercase)

Convert a title into a URL-friendly slug

Slug Options

Preserve the original casing of the input instead of converting to lowercase

Slug (case preserved)

Convert a title into a URL-friendly slug without any case change

Slug Options

Preserve the original casing of the input instead of converting to lowercase

Slugs (multi lines processing)

Convert titles on each lines into a URL-friendly slugs

Slug Options

Preserve the original casing of the input instead of converting to lowercase


All Text Tools

Remove duplicate lines

Quickly delete all repeated lines from text

Base64 Encoder/Decoder

Encode or decode data using Base64.

Text Statistics

Get statistics about your text

Password Generator

Generate secure random passwords with custom options

String URL encoder

Quickly URL-escape a string.

String URL decoder

Quickly URL-unescape a string.

Hidden Character Detector

Find hidden Unicode characters in text

Email Extractor

Extract email addresses from text

Compare Texts

Compare two texts and spot differences instantly

You May Also Like

Resize Image

Resize one or multiple images at once.

Compress Images

Compress one or multiple images at once.

Split PDF

Extract specific pages from a PDF file

Rotate PDF

Rotate pages in a PDF document

Trim Video

Trim video by removing unwanted sections

Compress Video

Compress videos by scaling to different resolutions

We use cookies

We use cookies for analytics and advertising. You choose what's enabled. Essential cookies are always on. Privacy Policy