Base62 1.3.0

.NET 5.0 .NET Standard 1.3
dotnet add package Base62 --version 1.3.0
NuGet\Install-Package Base62 -Version 1.3.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Base62" Version="1.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Base62 --version 1.3.0
#r "nuget: Base62, 1.3.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Base62 as a Cake Addin
#addin nuget:?package=Base62&version=1.3.0

// Install Base62 as a Cake Tool
#tool nuget:?package=Base62&version=1.3.0


Base62 encoder and decoder based on Base62 for PHP for .NET. This library is useful for converting data into shortened strings good for URL shortening and/or obfuscating auto-incrementing resource ids from being exposed through RESTful APIs.

.NET Nuget


Written to be netstandard compliant, this library should be able to be used cross-platform. See netstandard details for more information.


var base62Converter = new Base62Converter();

var encoded = base62Converter.Encode("120");


var decoded = base62Converter.Decode(encoded);


// output is:
//    "DWjo"
//    "120"

Character sets

By default Base62 uses [0-9A-Za-z] character set but can be alternated to use [0-9a-zA-Z] through the constructor.

new Base62Converter(Base62Converter.CharacterSet.INVERTED);



The MIT LIcense (MIT).

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard1.3 netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1
.NET Framework net46 net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen30 tizen40 tizen60
Universal Windows Platform uap uap10.0
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 1.3

  • .NETStandard 2.0

    • No dependencies.
  • .NETStandard 2.1

    • No dependencies.
  • net5.0

    • No dependencies.
  • net6.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Base62:

Package Downloads
NineDigit.eKasa The ID prefix of this package has been reserved for one of the owners of this package by

eKasa PPEKK solution by Nine Digit, s.r.o.

NineDigit.eKasa.StorageManagement The ID prefix of this package has been reserved for one of the owners of this package by

No descrpition.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.3.0 824 11/2/2022
1.2.0 53,272 8/8/2021
1.1.0 41,771 7/16/2019
1.0.0 78,718 10/9/2017

* Addresses bug with leading zeros