Skip to main content

Slug generator

Automatically normalize text into a slug by removing unnecessary characters and preparing a URL-friendly result.

  • Clipboard
Automate

Embed this widget

Customize the result, check the live preview, then copy the code.

Preview

Embed code type

Code to copy

Responsive and automatically resized by Bethemesh.

Was this tool useful?

How does this tool work?

This generator turns a title or sentence into a slug, the readable part of a URL such as /gift-ideas-under-20. It strips accents, lower-cases everything and replaces spaces and punctuation with hyphens, giving a short, stable address with no characters that would need encoding.

Accented letters lose their accent (é becomes e, ç becomes c, ñ becomes n) and letters with no decomposed form are transliterated: ß becomes ss, œ oe, æ ae and ø o.

The text is lower-cased; any run of characters that is neither a letter a to z nor a digit (spaces, apostrophes, punctuation, symbols such as £) becomes a single hyphen.

Leading and trailing hyphens are removed: “–Déjà vu–” gives deja-vu.

Non-Latin scripts (Cyrillic, Greek, Arabic, Chinese…) are not transliterated and disappear: a title written only in Cyrillic gives an empty slug.

How to use this tool

  1. Paste the text

    A title, sentence or product name in the Text to transform field.

  2. Generate the slug

    Click Generate slug.

  3. Shorten if needed

    Remove words that add nothing (the, of, for) to keep 3 to 6 meaningful words.

  4. Copy the result

    Paste the slug into your CMS URL field.

Use cases

Create an article URL

Turn a blog post title into a clean address before publishing.

Name files

Get file names without spaces or accents that work on every server and command-line tool.

Generate identifiers

Produce heading anchors (#my-heading) or readable keys for a database or translation file.

Examples

Article title

The £ sign and the dash disappear; the numbers are kept.

Input

Text to transform: 10 Gift Ideas Under £20 – 2026 Edition

Result

Slug: 10-gift-ideas-under-20-2026-edition

Accents and apostrophes

The apostrophe splits the words and the accents are removed.

Input

Text to transform: Why Café-Crème Isn’t Just Coffee

Result

Slug: why-cafe-creme-isn-t-just-coffee

Tips and best practices

  • Aim for a short, descriptive slug: Google recommends simple, readable URLs made of words.
  • Avoid dates in the slug of content you will update, or the URL will become misleading.
  • Changing the slug of a published page changes its URL: set up a 301 redirect from the old address.
  • Stop words (the, a, of, and) can be removed by hand; the tool keeps them so as not to change the meaning.

Sources and references

Frequently asked questions

Why remove accents?

A URL with accents works, but it is encoded as %C3%A9 when copied or shared, which makes it unreadable. A slug without accents stays the same everywhere.

Hyphen or underscore?

The hyphen (-). Google treats it as a word separator, whereas an underscore (_) can be read as part of the word. The tool therefore uses hyphens.

What happens to non-Latin characters?

They are removed, because the tool does not transliterate Cyrillic, Greek or Asian scripts. Enter a Latin version of the title in that case.

Does the slug affect SEO?

Slightly. A clear slug mainly helps people understand the page before clicking; do not change an existing slug just to add a keyword.

Is my text sent to a server?

No. The slug is calculated in your browser.

Recommended workflow

Discover tools that naturally fit before, after, or alongside this one.

Works well with

Encode or decode a URL, its parameters, and any special characters it contains.

Web & SEOUse this tool

Remove extra spaces, repeated tabs and empty lines from copied text.

Web & SEOFeaturedUse this tool

Convert text to lowercase, UPPERCASE, Title Case or other common case styles.

Web & SEOFeaturedUse this tool

Use before

Remove extra spaces, repeated tabs and empty lines from copied text.

Web & SEOFeaturedUse this tool

Next step

Encode or decode a URL, its parameters, and any special characters it contains.

Web & SEOUse this tool