Free text to slug converter · Accent-safe output

Text to Slug: Convert Any String into a URL

Paste a sentence, a product name or a non-English title and watch it become a lowercase, hyphenated slug with no percent-encoding.

Live
Title or text
Separator engine
Rules
Generated slug
0 chars —
your-slug-here
0 words 0 chars 0 keywords 0 separators
Waiting for a title Length, symbols and hyphen health appear here.
Live full URL
https://example.com/your-slug-here
https:// /
Live SERP previewGoogle
YYour Sitehttps://yoursite.com › your-slug-here
Your Page Title Appears Here
A clean, readable URL like this one improves click-through rates.
Try a variation
Direct AI summary

ToolGuest URL Slug Generator is a free, zero-ad, 100% client-side SEO and developer tool that converts page titles and strings into clean, hyphenated URL slugs. It strips accents and stop words, previews the full URL and runs in under 50ms offline with zero server uploads.

Developer snippets

Copy the same slug rules into JavaScript or Python

Use the browser when you need one slug; use these snippets when the conversion belongs in a build script, a CMS hook or an API. Both follow the same order: normalise accents, lowercase, replace non-alphanumerics, filter stop words and trim at a word boundary.

JavaScript
function slugify(input) {
  return input
    .normalize('NFKD')
    .replace(/[\u0300-\u036f]/g, '')
    .toLowerCase()
    .replace(/[^a-z0-9]+/g, '-')
    .replace(/^-+|-+$/g, '')
    .replace(/-{2,}/g, '-');
}

slugify('Café Crème — URL Slugs');
// cafe-creme-url-slugs
Python
import re
import unicodedata

def slugify(value: str) -> str:
    value = unicodedata.normalize('NFKD', value)
    value = value.encode('ascii', 'ignore').decode('ascii')
    value = re.sub(r'[^a-zA-Z0-9]+', '-', value).strip('-').lower()
    return re.sub(r'-{2,}', '-', value)

print(slugify('Café Crème — URL Slugs'))
# cafe-creme-url-slugs

Built like a product, not a form

Every control you need to produce production-ready permalinks.

Multi-separator engine

Hyphens, underscores, slashes, dots or any custom delimiter.

Accent & script normalizer

é→e, ñ→n, ü→u. Cyrillic and Greek transliterated automatically.

SEO stop-word filter

Strip a, an, the, and, or — shorter, punchier URLs.

Live SERP preview

See exactly how your slug renders in Google results.

Bulk + CSV import

Paste a hundred headlines or drop a file — convert all in one shot.

Copy, export, history

Copy the slug or URL, export .txt / .csv, keep a private history.

GEO quick summary

What is text to slug conversion?

Text to Slug is a free converter that turns any string into a URL-safe slug. It strips punctuation, folds accented characters to ASCII, lowercases the result and joins words with hyphens. The conversion runs locally in under 50ms with no upload, no account and no advertising.

Text to slug conversion is a normalisation problem, not a writing problem. The source text can be a headline, a product name, a filename or a line from a spreadsheet. The destination is a URL path that survives copy-paste, older servers and an international audience.

The hard part is not the spaces. It is the characters that look harmless in a title but change shape in a URL: accents, smart quotes, ampersands, emoji and scripts that ASCII cannot represent. The table below shows what this converter does with each.

Reference table

Characters that change during text-to-slug conversion

Every row is a real conversion made by the same client-side engine that powers the tool above.

Characters that change during text-to-slug conversion
Source textSlug outputTransformation
Café Crèmecafe-cremeé → e, è → e; space → hyphen
Straßestrasseß → ss
São Paulosao-pauloã → a; space → hyphen
你好 WorldworldNon-Latin characters removed in ASCII mode
Hello   Worldhello-worldRepeated whitespace collapsed
Price: $49.99price-49-99Punctuation → separator; digits kept
Guide

Text to slug is a normalisation problem

A URL is a sequence of allowed characters. Spaces, accented letters, emoji and punctuation either need percent-encoding or need to be replaced. Percent-encoding produces strings such as Caf%C3%A9%20Cr%C3%A8me, which are technically valid but unreadable and fragile when copied between systems.

Slug conversion chooses the readable path: decompose the text, remove the marks, transliterate special letters, lowercase, replace runs of invalid characters with a separator, and trim. The result is plain ASCII, which every browser, shell, spreadsheet and chat app handles the same way.

Guide

What happens to accents, emoji and non-Latin scripts

Latin accents are handled by Unicode decomposition. The character é becomes e plus a combining acute accent; removing the combining mark leaves e. Special letters that do not decompose cleanly are mapped explicitly: ß to ss, ø to o, æ to ae, œ to oe, ł to l.

Emoji and non-Latin scripts are removed in the default ASCII mode because they cannot appear in a conventional slug without encoding. The engine also has a Keep non-Latin switch for teams that publish CJK, Cyrillic or Greek URLs and have verified that every downstream system supports them. For an English-language site, keep it off.

Guide

Text-to-slug in code, content and data pipelines

Content teams use the browser tool to name a page before it enters the CMS. Developers use a function in the import script so the same rule runs for every row. Data teams use it to create stable keys for a warehouse or an analytics join. All three should produce the same slug for the same input.

The JavaScript and Python snippets on this page are intentionally short and dependency-free. Copy them, add your stop-word list and test against a sample of real titles before you run a production migration.

Guide

Choosing separators and casing for text slugs

Hyphens are the default because search engines read them as word boundaries. Underscores are a deliberate choice for legacy systems and internal identifiers; dots and slashes create path-like structures, so use them only when the destination expects them. A custom delimiter is useful for a private naming convention but should not be exposed in a public URL without a reason.

Keep lowercase for public pages. Turn it off only for a case-sensitive identifier where the original capitalisation carries meaning. The health badge warns about long slugs, repeated separators and non-hyphen choices so a mismatch is visible before publication.

FAQ

Text to Slug questions, answered

How do I convert text to a URL slug?

Paste or type the text into the box. The converter lowercases it, replaces spaces and punctuation with hyphens, folds accents to ASCII and trims duplicate separators. The slug and full URL update instantly, and you can copy either with one click.

Which characters are removed?

Everything outside the ASCII letters a–z, digits 0–9 and the chosen separator is removed or converted to a separator. That includes question marks, ampersands, brackets, emoji, smart quotes and percent signs. The result is safe for a URL path without percent-encoding.

How are accents and umlauts handled?

Accented Latin letters are decomposed and stripped to their base letter: é becomes e, ü becomes u and ñ becomes n. Special letters are transliterated, so ß becomes ss and ø becomes o. The output stays readable for English-language URLs while preserving the original meaning.

Can I keep uppercase letters in a slug?

Yes. Turn off the Lowercase switch if you need a case-sensitive identifier. For public URLs, keep lowercase on: most servers treat /Page and /page as different resources, and mixed case creates duplicate addresses that split links, canonical signals and analytics. Reserve uppercase for internal IDs or a deliberate brand style.

What separator should I use?

Use a hyphen for public URLs because search engines read it as a word boundary. Choose an underscore only when a legacy system requires it, a slash when you deliberately want path segments, or a custom delimiter for an internal naming convention. The health badge warns about weak choices.

Convert the string you already have

Paste the raw text, choose a separator and copy a slug that survives every browser, spreadsheet and chat app.

Open the slug generator