BASE Function in Excel: Number in Any Base

BASE Function in Excel: Number in Any Base featured illustration

πŸ“Ž This article includes 1 downloadable practice file ↓

⏱ 2 min readUpdated 28 September 2026

EngineeringLevel: IntermediateAvailable in: Excel 2013+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Example 2
  5. BASE in practice
  6. Where you will use it
  7. Worked example
  8. Mistakes people make
  9. Related functions
  10. Continue learning

BASE converts to any base from 2 to 36 and handles much bigger numbers than DEC2BIN.

Advertisement

Syntax

=BASE(number, radix, [min_length])
Argument What it means
radix 2 to 36.

Examples

Example 1

=BASE(255, 2)

11111111.

Example 2

=BASE(ROW(), 36, 4)

Short 4-character IDs like 00A7.

BASE in practice

Where you will use it

  • Write numbers in binary or hex for bit masks
  • Generate short codes in base 36
  • Teach number systems

Worked example

NumberRadixFormulaResult
2552=BASE(A2,B2)11111111
25516=BASE(A3,B3)FF
12345636=BASE(A4,B4)2N9C

Results calculated in Excel.

Mistakes people make

MistakeWhat to do instead
Expecting leading zerosAdd the min_length argument: BASE(5,2,8) gives 00000101
Negative numbersBASE accepts only 0 or more

DECIMAL Β· DEC2BIN

πŸ“š Part of the free Excel course: Beginner β†’ Expert Β· Try it in the Formula Lab or ask the AI Helper.

⚑ Interactive Practice Lab & Formula Tester:

Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.

πŸ“Ž Practice files for this article

  • πŸ“—
    Practice workbook: Engineering & conversion15 tasks on realistic sales data β€” type your formula, the Check column turns green when it is right. Answers sheet included.
    ⬇ XLSX Β· 34 KB

Free to use for learning. Files with macros (.bas) are plain text β€” import them with Alt+F11 β†’ File β†’ Import File, and always test on a copy.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free Β· AI can be wrong