sindresorhus

    sindresorhus/slugify

    #400 this week

    Slugify a string

    backend
    browser
    nodejs
    npm-package
    slug
    slugify
    JavaScript
    MIT
    2.7K stars
    99 forks
    2.7K GitHub watchers
    Updated Oct 13, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    Ranks #400 of 2,794 repositories GStars tracks this week (top 14%).

    2 releases in the last 90 days, the latest 38 days ago, with 18 contributors on GitHub.

    Use Cases & Benefits

    • Converts strings into URL-safe, readable slugs by transliterating and formatting text.
    • Supports multiple languages and customizable options for precise slug generation and uniqueness handling.
    • Use for generating SEO-friendly URLs from user input or content titles in web applications.
    • Use for creating unique HTML element IDs with automatic counters to avoid duplicate anchors in documents.
    • Use for sanitizing filenames or identifiers by converting complex strings into safe, consistent formats.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    MIT

    Permissive: commercial use, modification and redistribution are allowed with attribution.

    Community files

    • README: present
    • Contributing guide: present
    • Code of conduct: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    Slugify a string

    Useful for URLs, filenames, and IDs.

    It handles most major languages, including German (umlauts), Vietnamese, Arabic, Russian, and more.

    Excerpt from the sindresorhus/slugify README on GitHub (MIT license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    99+11

    Open issues

    2+1

    Compared with peers in Backend

    Fastest-growing repositories GStars tracks in this cohort for the week of Oct 18, by 7-day star growth

    sindresorhus/slugify compared with Backend repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    anthropics/claude-plugins-official43.9K+5.6K35—
    NationalSecurityAgency/ghidra93.2K+4.9K75today
    K-Dense-AI/scientific-agent-skills53.9K+4.0K7521 days ago
    akitaonrails/ai-memory12.8K+3.3K40today
    shiyu-coder/Kronos43.2K+2.4K75—
    sindresorhus/slugify2.7K+07538 days ago
    Category median43.9K+4.0K75—

    Also by sindresorhus

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description