martinlindhe/base36

Base36 implementation in golang

Go

63

26 commits

updated Apr 29, 2026

See the code

README

About

GoDoc

Implements Base36 encoding and decoding, which is useful to represent large integers in a case-insensitive alphanumeric way.

Examples

import "github.com/martinlindhe/base36"

fmt.Println(base36.Encode(5481594952936519619))
// Output: 15N9Z8L3AU4EB

fmt.Println(base36.Decode("15N9Z8L3AU4EB"))
// Output: 5481594952936519619

fmt.Println(base36.EncodeBytes([]byte{1, 2, 3, 4}))
// Output: A2F44

fmt.Println(base36.DecodeToBytes("A2F44"))
// Output: [1 2 3 4]

Notice

For basic base 36 conversion, you can use strconv.FormatUint() from the stdlib.

License

Under MIT

base36
golang-library

martinlindhe/base36

Base36 implementation in golang

Go

63

26 commits

updated Apr 29, 2026

See the code

README

About

GoDoc

Implements Base36 encoding and decoding, which is useful to represent large integers in a case-insensitive alphanumeric way.

Examples

import "github.com/martinlindhe/base36"

fmt.Println(base36.Encode(5481594952936519619))
// Output: 15N9Z8L3AU4EB

fmt.Println(base36.Decode("15N9Z8L3AU4EB"))
// Output: 5481594952936519619

fmt.Println(base36.EncodeBytes([]byte{1, 2, 3, 4}))
// Output: A2F44

fmt.Println(base36.DecodeToBytes("A2F44"))
// Output: [1 2 3 4]

Notice

For basic base 36 conversion, you can use strconv.FormatUint() from the stdlib.

License

Under MIT

base36
golang-library

Project health

Overall

2.9/10

Maintained

0/10

Code review

1/10
OpenSSF Scorecard

Latest release

v1.1.1 · Jun 19, 2022

Releases this year

0

Significant stargazers

David Zhao

425 followers · starred Feb 2022