Skip to content
TextRuns in your browser

Text to Slug Generator

Turn any heading or phrase into a clean, URL-safe slug.

Input
No upload needed — instant
Privacy
Nothing is uploaded
Cost
Free · no sign-up · no watermark

Loading tool…

The tool is loading its code on your device. This happens once and is cached for later visits.

Processed entirely on your device

Everything you type or paste is handled by JavaScript running in this tab. No request is sent, nothing is logged and nothing is stored. Close the page and it is gone.

Overview

About the Text to Slug Generator

Generate URL slugs from text instantly. Handles accents, stop words, separators and length limits — with a live preview of the final URL.

A slug is the part of a URL that identifies a page in human-readable form: in https://example.com/blog/how-to-compress-images, the slug is how-to-compress-images. It is one of the few ranking signals you control completely, and one of the few you cannot easily change later.

The rules that hold up

Lowercase everything. URLs are case-sensitive on most servers. /Guide and /guide can be two different resources, which splits link equity and creates duplicate-content confusion.

Use hyphens, not underscores. Google treats a hyphen as a word separator and an underscore as a joiner. This is documented guidance and has not changed in fifteen years.

Keep it short. Around three to five words, ideally under 60 characters. Long slugs are truncated in search results and are harder to read, share and remember.

Include the target keyword. Not stuffed, not repeated — just present. image-compression-guide beats post-4821.

Avoid dates unless the content is genuinely dated. seo-tips-2024 becomes a liability the moment you update the article in 2026.

Never change a published slug without a 301 redirect. Any inbound links, social shares and indexed rankings are attached to the old URL.

What the generator does to your text

  1. Normalise to NFKD and strip combining marks — this converts é to e and ñ to n.
  2. Replace special characters with their word equivalents where meaning is preserved: & becomes and, @ becomes at.
  3. Remove apostrophes without inserting a separator, so don't becomes dont rather than don-t.
  4. Collapse every remaining run of non-alphanumeric characters into a single separator.
  5. Lowercase, trim separators from both ends, and truncate at a word boundary under your length limit.

Batch workflow

Paste a column of titles from a spreadsheet, generate, and copy the slugs back into the adjacent column. Because line order is preserved and each line is processed independently, this is a safe bulk operation for a migration. Verify the output for any titles containing non-Latin script, brand names with intentional capitalisation, or product codes where a hyphen carries meaning.

Step by step

How to use the Text to Slug Generator

  1. Paste a title, heading or phrase — one per line if you have a batch.

  2. Choose a separator (hyphen or underscore) and a maximum length.

  3. Toggle stop-word removal and lowercasing to taste.

  4. Read the resulting slug and the full URL preview.

  5. Copy a single slug, or copy the whole batch as a list.

Why use it

Benefits and common use cases

What this tool is good for, and what it deliberately does not try to do.

Accent and diacritic folding

Café becomes cafe and Straße becomes strasse, so slugs stay pure ASCII and never break in a browser, a database or a CSV export.

Stop-word trimming

Optionally drops a, an, the, of, and, in and similar words, which shortens URLs without losing the keywords that matter.

Length control that respects words

Truncation happens at a word boundary, never mid-word, so you never publish a slug ending in a dangling fragment.

Batch mode

Paste a column of titles and get a column of slugs back — ideal for migrating a blog or preparing a CSV import.

Questions

Frequently asked questions

Short, honest answers about quality, limits and privacy.

What makes a good URL slug?

Short, lowercase, hyphen-separated, descriptive and stable. Include the primary keyword, drop filler words, keep it under about 60 characters, and never change it after publication without setting up a redirect.

Should I use hyphens or underscores?

Hyphens. Google explicitly recommends hyphens as word separators; underscores join words into a single token, so page_one is read as 'pageone' while page-one is read as 'page one'.

How are accented characters handled?

They are transliterated to their closest ASCII equivalent via Unicode NFKD normalisation: é becomes e, ñ becomes n, ü becomes u. German ß becomes ss. Characters with no ASCII equivalent, such as Cyrillic or CJK, are either transliterated by a locale table or removed, depending on the setting.

Do stop words hurt SEO if I remove them?

Rarely. Google's understanding of a page comes overwhelmingly from its content, not from whether 'the' appears in the URL. A shorter slug is more readable in search results and less likely to be truncated. Keep stop words only when removing them would change the meaning.

Can I generate slugs for many titles at once?

Yes. In batch mode each line is converted independently and the output preserves the line order, so you can paste a column from a spreadsheet and paste the result back into another column.