Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. All processing happens entirely in your browser - your files never leave your device. No uploads, no accounts, complete privacy.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. Converters & Encoders
  3. Number Base Converter
Add to favorites

Number Base Converter

Convert numbers between binary, octal, decimal, and hexadecimal

Convert numbers between binary, octal, decimal, and hexadecimal, plus any custom base from 2 to 36. Each result also shows how the same bits would be read as a signed 8-bit, 16-bit, or 32-bit integer, and binary output is grouped into nibbles for readability. Beyond conversion, the tool has three more modes: a bitwise calculator, an IEEE-754 floating-point inspector, and an interactive ASCII table, which makes it a small workbench for low-level programming, memory addresses, and digital logic.

Runs locally in your browserMore converters & encodersJump to full guide

Related reading

  • Number Systems: Understanding Binary, Hexadecimal, and Octal15 min read

Initializing in your browser…

You might also like

Unix Timestamp Converter

Convert between Unix/Epoch timestamps and human-readable dates. Supports seconds and milliseconds with timezone information

Audio Format Converter

Convert audio files between WAV, MP3, OGG, AAC, M4A, FLAC formats online. Adjust bitrate and quality settings. Free browser-based conversion with no file uploads to servers.

Color Converter

Convert between HEX, RGB, HSL, and CMYK color formats

An example conversion

You are debugging a bitmask and need to see the value 255 as hex, binary, and octal at once.

Decimal

255
Number Base Converter produces

Other bases

Hex:    0xFF
Binary: 0b11111111
Octal:  0o377

255 is 2⁸−1, so it is all ones across 8 bits (`11111111`) and the single-byte maximum, instantly recognisable once you see the binary. The converter handles arbitrary bases 2–36 and large values without floating-point rounding, which matters when a 64-bit flag silently loses precision in less careful tools.

What this converter does

Convert numbers between binary, octal, decimal, and hexadecimal, plus any custom base from 2 to 36. Each result also shows how the same bits would be read as a signed 8-bit, 16-bit, or 32-bit integer, and binary output is grouped into nibbles for readability. Beyond conversion, the tool has three more modes: a bitwise calculator, an IEEE-754 floating-point inspector, and an interactive ASCII table, which makes it a small workbench for low-level programming, memory addresses, and digital logic.

How it works

The Base Converter mode parses your input in the base you select (it strips 0x, 0b, and 0o prefixes and ignores spaces and underscores) and re-displays it in decimal, binary, octal, hex, and a custom base you choose from 2 to 36. Because parsing goes through JavaScript numbers, it covers integers up to 2^53 - 1 exactly; it also shows the signed 8-, 16-, and 32-bit interpretations of the value so you can see how the same byte pattern reads as a negative number under two's complement.

The Bitwise mode takes one or two operands (each in its own base) and computes NOT, left shift, arithmetic right shift, zero-fill right shift, AND, OR, XOR, NAND, and NOR, showing each result in decimal, binary, and hex with the operands laid out in 8-bit groups. The IEEE-754 mode decodes a decimal number into its single-precision (32-bit) or double-precision (64-bit) floating-point representation, splitting out the sign bit, the biased and unbiased exponent, and the mantissa, and reconstructing the value as a formula; quick buttons load pi, e, infinity, NaN, and the format's min and max. The ASCII mode renders an interactive table of code points 0-127, color-coded by control, digit, uppercase, and lowercase, with click-to-copy. Everything runs locally in your browser.

How to use

  1. 1In Base Converter mode, enter a number and select its input base (binary, octal, decimal, or hex), then optionally pick a custom output base from 2 to 36.
  2. 2Read the value in every base at once, along with its signed 8/16/32-bit interpretations.
  3. 3Switch to Bitwise mode for AND/OR/XOR/NOT and shifts, Float mode for IEEE-754 breakdowns, or ASCII mode for the character table.

Key features

  • Binary, octal, decimal, hex, and any custom base from 2 to 36
  • Signed 8-bit, 16-bit, and 32-bit interpretations of each value
  • Bitwise calculator: NOT, shifts, AND, OR, XOR, NAND, NOR
  • IEEE-754 inspector for single and double precision with sign/exponent/mantissa breakdown
  • Interactive, color-coded ASCII table with click-to-copy
  • Grouped binary display for readability (e.g., 1010 0011)

Frequently asked questions

Can I convert to bases other than binary, octal, decimal, and hex?

Yes. The Base Converter has a custom-base option that supports any base from 2 to 36, using digits 0-9 and letters A-Z.

Can I enter negative numbers?

The base converter works on unsigned magnitudes, but it also shows the signed 8-, 16-, and 32-bit two's-complement interpretation of each value so you can read negative results directly.

What is the largest number supported?

The converter handles numbers up to JavaScript's safe integer limit (2^53 - 1). For larger values, results may lose precision.

Further reading

  • Number Systems: Understanding Binary, Hexadecimal, and Octal15 min read

Private by design

Conversions run on your device in JavaScript. The values you enter are never sent over the network.