Sqids 1.0.1
Sqids .NET
Sqids (pronounced "squids") is a small library that lets you generate YouTube-looking IDs from numbers. It's good for link shortening, fast & URL-safe ID generation and decoding back into numbers for quicker database lookups.
Getting started
Install the NuGet package:
Install-Package Sqids
Alternatively, using the .NET CLI:
dotnet add package Sqids
Basic usage:
using Sqids;
var sqids = new SqidsEncoder();
string id = sqids.Encode(123); // id = 'UfB'
int number = sqids.Decode(id).Single(); // number = '123'
Examples
DI usage:
services.AddSingleton(new SqidsEncoder(new()
{
Alphabet = "djpo9831",
}));
License
No packages depend on Sqids.
.NET 7.0
- No dependencies.
| Version | Downloads | Last updated |
|---|---|---|
| 3.1.0 | 0 | 12/01/2023 |
| 3.0.3 | 0 | 09/15/2023 |
| 3.0.2 | 0 | 09/13/2023 |
| 3.0.1 | 0 | 09/10/2023 |
| 3.0.0 | 0 | 10/29/2025 |
| 2.0.0 | 0 | 08/30/2023 |
| 1.1.0 | 0 | 08/18/2023 |
| 1.0.5 | 0 | 08/16/2023 |
| 1.0.4 | 0 | 08/08/2023 |
| 1.0.3 | 0 | 08/08/2023 |
| 1.0.2 | 1 | 10/29/2025 |
| 1.0.1 | 1 | 10/29/2025 |
| 1.0.0 | 0 | 08/06/2023 |
| 1.0.0-preview.3 | 0 | 08/06/2023 |
| 1.0.0-preview.2 | 1 | 10/30/2025 |
| 1.0.0-preview.1 | 1 | 10/29/2025 |