Base 36 — Why & How its important ?

Ganesh Chandrasekaran
Analytics Vidhya
Published in
3 min readOct 22, 2020

--

Most of us are familiar with Binary, Octal, Decimal, Hexadecimal numbering system. Today lets learn about Base 36 number system and why its so cool.

Photo by Mika Baumeister on Unsplash

What is Base 36 ?

Binary consists of values 0 and 1
Decimal : 0 to 9
Octal : 0 to 7
Hex : 0 to 9 and A to F
Base 36 : (hexatridecimal) 0 to 9 and A to Z

Number 1000 is stored following way in

Binary = 1111101000
Decimal = 1000
Hex= 3E8
Base 36 = RS

Why Base 36?

Simple answer to “Save Space”.

How it saves space ?

An epoch time stamp 1602374487561 (14 characters long) will be converted to 8 character long Base 36 string “kg4cebk9”

Example : Processing 1 billion rows each hour for a day

Billion rows x 14 = 14 billion bytes = 14 GB x 24 hrs = 336 GB
Billion rows x 8 = 8 billion bytes = 8 GB x 24 hrs = 192 GB

There is a direct saving of 40% in storage.

Storage is cheap, but when data grows exponentially ? If the same has to be stored on Cloud like AWS S3 ?

--

--

Ganesh Chandrasekaran
Analytics Vidhya

Big Data Solution Architect | Adjunct Professor. Thoughts and opinions are my own and don’t represent the companies I work for.