MakeMyTxt

Text to Slug

Type a title or paste a sentence and get a clean, URL-safe slug. Choose your separator, casing, and whether to strip common stop words.

Separator

Options

How to use: turn a title into a URL slug

Convert any title or sentence into a clean, URL-safe slug with control over separator, casing, and stop words.

  1. 1

    Open the Text-to-Slug tool

    Visit makemytxt.com/text-to-slug. The slug updates as you type — no Generate button to click.

  2. 2

    Type or paste your title

    Drop in a blog headline, page title, product name, or any sentence. Accented characters, emoji, and punctuation are all handled.

  3. 3

    Choose a separator

    Hyphens are standard for URLs and SEO. Underscores are common for filenames and Markdown anchors. Dots are useful for npm package names and version-style slugs.

  4. 4

    Tune length, case, and stop words

    Cap the slug length to keep URLs short, force lowercase for canonical URLs, and optionally strip common English stop words like "the", "of", and "and" to keep the slug compact.

Frequently asked questions

How does the tool handle accented characters?
Diacritics are stripped using Unicode NFKD normalization, so "Crème Brûlée" becomes "creme-brulee". This matches the behaviour of most CMS platforms (WordPress, Ghost, Hugo) so the resulting slugs play nicely with existing URL structures.
Why might I want to strip stop words?
Search engines mostly ignore stop words in URLs, and shorter slugs are easier to share and remember. Stripping "the", "of", and "and" can turn "the-best-of-the-best-coffee-shops" into "best-best-coffee-shops" — same meaning, much shorter URL.
Will the max-length cap chop a word in half?
No. The slugger trims at the last separator within the cap so the slug never ends mid-word. If trimming would lose only a few characters, the whole final word is kept; otherwise it is dropped cleanly at the previous separator.
Can I use the slug as a filename?
Yes. The output uses only ASCII letters, digits, and your chosen separator, so it is safe on every common filesystem. Pick the underscore separator if you want a Python-friendly identifier you can also use as a variable name.

Related tools