Free tools

Free Number Base Converter

Convert values between binary, octal, decimal, hexadecimal, and custom bases with deterministic precision.

Copy-paste outputs

The autonomous growth engine for your business.

Brand Armor AI finds where your customers are, decides what to create, distributes it across the channels that matter, and learns from every result.

Discover customer opportunitiesPlan campaignsCreate posts, images, and videosPublish across channelsMeasure what worksAI search visibilityDiscover customer opportunitiesPlan campaignsCreate posts, images, and videosPublish across channelsMeasure what worksAI search visibility
Social publishingBlog and CMS deliveryEmail outreachAutopilot workflowsBrand IdentityWeekly reportsSocial publishingBlog and CMS deliveryEmail outreachAutopilot workflowsBrand IdentityWeekly reports
Shopping IntelligenceCompetitor AnalysisBrand IdentityShopping IntelligenceCompetitor AnalysisBrand Identity

Tool 01

Number Base Converter

Convert integers between bases 2 and 36 with BigInt precision.

Number Base Converter
Convert integers across bases 2 through 36 with BigInt precision.

Converted value

255

Decimal

255

Binary

11111111

Octal

377

Hex

FF

How it works

Number Base Converter: methodology and worked example

How this tool computes its result

The converter parses the input string manually rather than using parseInt: it trims and uppercases the value, splits off a leading "-" sign, then walks each character and looks up its position in the string "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" sliced to the source base's digit alphabet, accumulating a BigInt via result = result * base + digitValue. Output conversion reverses this with repeated division and remainder against the target base, prepending each remainder's character. Because the whole pipeline runs on BigInt, there is no floating-point precision loss for arbitrarily large integers, and the tool always also renders binary, octal, and hex alongside your chosen target base.

Worked example

Input "FF" with From base 16 and To base 10: parseBigIntFromBase walks F (15) then F (15) → 15*16+15 = 255n. The converted field shows "255", and the fixed panels below show binary "11111111", octal "377", and hex "FF" — all derived from the same 255n value via toBase.

When not to use this tool

This is an integer-only converter. There is no decimal point or fractional-value handling anywhere in parseBigIntFromBase or toBase, so a value like "3.14" in any base will throw ("Digit "." is not valid for base X") rather than convert. Base range is also hard-capped at 2–36 by the min/max clamps on the base inputs, since 36 is the largest base representable with 0-9 plus A-Z.

Common mistakes

  • - Entering a digit that is not valid for the selected source base — e.g. "G" in base 16 or "2" in base 2 — throws `Digit "X" is not valid for base N` instead of silently ignoring it.
  • - Leaving the input field blank triggers "Enter a number value." since the trimmed string is checked for emptiness before parsing begins.
  • - Assuming lowercase and uppercase letters are both accepted as distinct digits — the input is uppercased before parsing, so case has no effect on the result.

Ready to put your growth work on autopilot?

Connect your business once, then let Brand Armor AI find opportunities, create content, publish it, and learn from what brings customers in.

Frequently Asked Questions