Skip to content
Home

Sqids (formerly Hashids)

Generates short, URL-safe, profanity-free IDs from non-negative numbers, with encoding and decoding capabilities.

Sqids is an open-source library that converts numbers into short, URL-safe, profanity-free identifiers, solving the problem of generating unique IDs for use in URLs and database keys. It targets developers and engineering teams across companies of all sizes who need to encode primary keys or multiple objects, and can also serve as temporary login tokens. It is positioned as a lightweight, customizable, and collision-free alternative to using raw numbers, with consistent ID generation across 44 programming language integrations.

Key features

  • Generate short IDs from non-negative numbers
  • Easy encoding and decoding
  • Auto-generated IDs avoid common profanity
  • Support for custom IDs via shuffled alphabet
  • 44 integrations
  • Every version produces the same IDs
  • Small library with permissive license
  • No social media activity within the last 30 days
GTM channels
  • No GTM activity detected
ICP
  • Software developers
  • Engineering teams
  • Startups