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-slugifypython-slugify
LanguagePythonPython
LicenseBSD-3-ClauseMIT
Stars3261.6k
Forks53146
Last analyzedNov 2, 2026Oct 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.
Read the unicode-slugify analysis →

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.
Read the python-slugify analysis →

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.