unicode-slugify vs python-slugify
Python slug-generation libraries compared
unicode-slugify and python-slugify both turn text into URL-friendly slugs, with options for Unicode-preserving or ASCII output. unicode-slugify focuses on a compact set of configurable character rules, while python-slugify offers a broader set of processing options and selectable algorithms and transliteration backends.

unicode-slugify: Create Unicode-Friendly Text Slugs
unicode-slugify is a Python library for creating URL-friendly slugs while preserving Unicode characters, with an option to transliterate to ASCII. It suits applications that need readable slugs for multilingual text.

python-slugify: Create Unicode-Aware Slugs in Python
python-slugify turns text into URL-style slugs, with options for transliteration, Unicode retention, and output rules. It suits Python applications that need readable identifiers, especially when teams can manage algorithm and backend changes carefully.
| unicode-slugify | python-slugify | |
|---|---|---|
| Language | Python | Python |
| License | BSD-3-Clause | MIT |
| Stars | 326 | 1.6k |
| Forks | 53 | 146 |
| Last analyzed | Nov 2, 2026 | Oct 9, 2026 |
Key differences
- unicode-slugify preserves Unicode by default and supports ASCII transliteration through Unidecode; python-slugify offers Unicode-preserving output and selectable text-unidecode, Unidecode, or AnyASCII backends.
- unicode-slugify lets you customize allowed characters and retain capitalization or spaces; python-slugify also supports replacements, stopwords, regex filtering, truncation, and HTML entity handling.
- unicode-slugify is a Python library used through the `slugify` function; python-slugify provides both a Python API and a command-line interface.
- python-slugify keeps its legacy algorithm as the default and makes its modern algorithm opt-in; unicode-slugify describes configurable slug formats without this legacy-versus-modern distinction.
- unicode-slugify uses the BSD-3-Clause license, while python-slugify uses the MIT license.
- The supplied repository figures list 325 stars and 53 forks for unicode-slugify, and 1.6k stars and 143 forks for python-slugify.
Choose unicode-slugify if you…
- need readable slugs that preserve Unicode by default.
- want to customize allowed characters or retain spaces and capitalization.
- need a focused Python library for slug generation.
Choose python-slugify if you…
- need a command-line interface as well as a Python API.
- want options for replacements, stopwords, filtering, truncation, or HTML entities.
- need to select and pin an algorithm or transliteration backend for consistent outputs.
Compare the numbers side by side, or add more projects
This comparison is generated with AI from the OSRepos analyses of both projects. Always check each project's repository and documentation before choosing.