Base Converter

Convert between binary, octal, decimal, hexadecimal, and any base from 2 to 36

Features

Display 4 major bases at a glance

Show results in binary, octal, decimal, and hexadecimal side by side as you type

Freely specify bases 2–36

Choose the input base and any additional bases to display from 2 to 36

Handle multiple values and large integers

Convert multiple inputs at once with delimiters, no rounding errors for negative or multi-digit numbers

Adjust notation for code

Toggle uppercase/lowercase letters and 0b, 0o, 0x prefixes

How to Use

1

Select the input base

Choose the base of your input value from 2 to 36 in "Input base" (default is decimal)

2

Enter the integer to convert

Type an integer in the input field. Separate multiple values with line breaks, commas, or spaces to convert them together

3

Adjust display and notation

If needed, change "Additional bases to display", letter case, and prefix options

4

Copy the result you need

Select the base you want from the results listed for each value and click the copy button

Base Converter

Use Cases

Check flag values and addresses

Convert hexadecimal flag values or memory addresses to decimal or binary to verify program behavior

Verify base conversion answers

Check multiple base conversion problems from exams or coursework against correct answers

Check IP address bits

Display each octet of a subnet mask or IP address in binary to verify network settings

Convert base-36 IDs

Cross-reference base-36 IDs with their decimal equivalents to verify data

Knowledge Base

What is radix (base)?

Radix is the number of different digits used in a numeral system. In base N, you use N different digits (0 through N−1), and each position is worth N times more than the position to its right. For example, decimal 255 is 11111111 in binary and FF in hexadecimal.

  • Why base 36 is the limit:To represent values 10 and above with single digits, letters A–Z are assigned in order. Since you have 10 digits and 26 letters, base 36 (where Z represents 35) is the standard upper limit.

Meaning of 0b, 0o, 0x prefixes

0b, 0o, and 0x are symbols placed at the start of numbers in programming languages to indicate which base the number is written in.

  • 0b (binary):0b is a prefix derived from "binary" and indicates base 2. For example, 0b1010 represents decimal 10.
  • 0o (octal):0o is a prefix derived from "octal" and indicates base 8. For example, 0o17 represents decimal 15.
  • 0x (hexadecimal):0x is a prefix derived from "hexadecimal" and indicates base 16. For example, 0xFF represents decimal 255.

Representing negative numbers

Negative numbers can be represented in two ways: signed notation with a minus sign prefix, or two's complement notation within a fixed number of bits.

  • Signed notation:In signed notation, negative numbers are written with a minus sign followed by the positive representation. For example, −255 is written as −11111111 in binary and −FF in hexadecimal.
  • Two's complement:Two's complement is how computers represent negative numbers internally. In 8-bit two's complement, −1 is represented as 11111111, which differs from signed notation despite using the same bit pattern.

Safety and Privacy

Runs entirely in your browser

Your input data is processed only within your browser and is never sent externally.

Processing only in your browser

Conversion processing is processed entirely within your browser, and input data is not sent to any server.

Communications encrypted with HTTPS

Page loading is also encrypted by TLS, and content cannot be read by third parties.

No transmission to third parties

Input content is not sent to external services such as ad networks or trackers.

Input numbers are not saved

Only settings are saved locally in your browser. Input numbers are excluded from saving.

Follow RAKKOTOOLS on Google Search

208 useful tools become easier to find from Google Search and AI Search!

  • Found in search
  • Also shown in AI Search
  • Discover new tools

Updates

Related Tools

RAKKOTOOLS is free to use!

Available free of charge for individuals and corporations, commercial and non-commercial use alike.No prior permission or usage application is required. Feel free to use it in various situations.

  • Use in streaming and videos

    Use various tools such as lottery draws and raffles in live streams and videos.

  • Use in schools, work, and events

    Can be used in various situations such as classes, team division, internal work, and events.

  • Introduction on Web, books, and SNS

    Feel free to introduce it as a useful tool on web media, books, SNS, and other platforms.

  • Commercial use

    Can be used for commercial purposes such as research, calculation, processing, and conversion in business and production.

If you mention it, I get motivated to create more tools!

If using in streaming and videos

Link to RAKKOTOOLS in the description, or Mention or display that you are using RAKKOTOOLS in the stream or video.

Credit example for the description

RAKKOTOOLS https://rakko.tools/en

Usage guidelinesYou are free to use it for normal purposes. However, use for purposes that violate laws, infringe on third-party rights, impose significant load on the service, or otherwise interfere with service operation is prohibited.

We do not guarantee the accuracy or completeness of information and calculation results obtained from each tool.

This notice is a translation of the original Japanese text. If there is any discrepancy between the translation and the original, the Japanese original takes precedence.