4Devs.tech

    URL Slug Generator

    Turn any title into a clean, SEO-friendly URL slug. Handles accents and special characters in any language, with bulk mode for many titles at once.

    Features

    • Removes accents and diacritics
    • Optional stop-word removal
    • Hyphen or underscore separator
    • Maximum length without cutting words
    • Bulk mode: one title per line

    How to Create SEO-Friendly URL Slugs

    A good slug tells both people and search engines what a page is about before they click. It appears in search results, in shared links and in browser tabs. Clean slugs are short, lowercase, use hyphens and contain the main keyword, and they should never change once a page has links pointing to it.

    Rules of thumb

    Use lowercase only, since some servers treat /About and /about as different pages. Keep it to 3–6 words. Include the main keyword. Leave out dates if you plan to update the content, so the URL does not look outdated.

    Non-English titles

    Accented letters are converted to plain ASCII (č → c, ü → u, ß → ss). Google can handle Unicode URLs, but ASCII slugs are easier to type, never get percent-encoded when shared and work reliably in every tool.

    Čo je nové v Reacte 19?  →  co-je-nove-v-reacte-19

    Generating slugs in code

    Most frameworks have a helper; in plain JavaScript the core idea is to normalise, strip accents and replace non-alphanumerics:

    const slug = s.toLowerCase().normalize('NFKD')
      .replace(/[\u0300-\u036f]/g, '')
      .replace(/[^a-z0-9]+/g, '-').replace(/^-|-$/g, '');

    Changing existing slugs

    Only change a live URL if the gain is clear. Set up a permanent 301 redirect, update internal links and your sitemap, then check the redirect with a redirect checker.

    Frequently asked questions