ArticleslgStudy

computer science

Base36

Base36 is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Base36 rather than just read about it. In short: Base36 is a binary-to-text encoding that represents binary data in an ASCII string format by translating it into a radix-36 representation. The choice of 36 is convenient in that the digits can be represented using the numerals 0–9 and the letters a-z (the lowercase ISO basic Latin alphabet).

Key takeaways

  • Base36 belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Base36 to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Base36 from memory before moving on to harder problems.

Reference excerpt

Base36 is a binary-to-text encoding that represents binary data in an ASCII string format by translating it into a radix-36 representation. The choice of 36 is convenient in that the digits can be represented using the numerals 0–9 and the letters a-z (the lowercase ISO basic Latin alphabet). Each Base36 digit contains log2(36) ≈ 5.17 bits of information, so six bits is sufficient to represent each digit. Base36 numbers can also be expanded to pairs of senary (base 6) digits.

Conversion Signed 32- and 64-bit integers will only hold at most 6 or 13 base-36 digits, respectively (that many base-36 digits can overflow the 32- and 64-bit integers). For example, the 64-bit signed integer maximum value of "9223372036854775807" is "1Y2P0IJ32E8E7" in base-36. Similarly, the 32-bit signed integer maximum value of "2147483647" is "ZIK0ZJ" in base-36.

Standard implementations The C standard library since C89 supports base36 numbers via the strtol and strtoul functions In the Common Lisp standard (ANSI INCITS 226-1994), functions like parse-integer support a radix of 2 to 36. Java SE supports conversion from/to String to different bases from 2 up to 36. For example, [1] and [2] Just like Java, JavaScript also supports conversion from/to String to different bases from 2 up to 36. [3] PHP, like Java, supports conversion from/to String to different bases from 2 up to 36 using the base_convert function, available since PHP 4. Go supports conversion to string to different bases from 2 up to 36 using the built-in strconv.FormatInt(), and strconv.FormatUint() functions, and conversions from string encoded in different bases from 2 up to 36 using the built-in strconv.ParseInt(), and strconv.ParseUint() functions. Python allows conversions of strings from base 2 to base 36. Raku supports base2 to base36 for all its real numeric types with its builtins: base and parse-base.

See also Senary – Base-6 numeral system Uuencoding

References

External links A discussion about the proper name for base 36 at the Wordwizard Clubhouse The Prime Lexicon, a list of words that are prime numbers in base 36 A Binary-Octal-Decimal-Hexadecimal-Base36 converter written in PHP A C# base 36 encoder and decoder sample in C# that demonstrates the HexaTriDecimal Numbering System including string parsing, as well as increment/decrement operations

Worked examples

Example 1 — a first encounter with Base36

Start with the simplest possible case. Write down what Base36 claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Base36 before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Base36 ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Base36

In research
Base36 appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Base36 in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Base36 is common in secondary-school and first-year university syllabi. It links to neighbouring topics Binary-to-text encoding formats, Computer arithmetic, Data serialization formats, so understanding it makes those chapters shorter.
In everyday life
Look for Base36 outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Base36” →

How to study Base36 in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Base36 means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Base36 out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Base36 in simple terms?

Base36 is a binary-to-text encoding that represents binary data in an ASCII string format by translating it into a radix-36 representation. The choice of 36 is convenient in that the digits can be represented using the numerals 0–9 and the letters a-z (the lowercase ISO basic Latin alphabet).

Why does Base36 matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Base36?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Base36.

Tags

  • Binary-to-text encoding formats
  • Computer arithmetic
  • Data serialization formats
  • Positional numeral systems

Keep exploring