Bit / Byte Calculator

Free online bit and byte calculator. Convert between bits, bytes, KB, MB, GB, TB, PB and their binary (IEC) equivalents instantly. — runs 100% in your browser, client-side only. No data is sent to any server. Free to use, no account required.

Free Client-Side No Login No Storage
Loading tool...

How to Use the Bit / Byte Calculator

  1. Enter a numeric value.
  2. Select the source unit.
  3. All conversions update instantly (bits, bytes, KB, MB, GB, TB, PB and their binary equivalents).

Supports both SI (decimal) and IEC (binary) units.

What is Bit / Byte Calculator?

A bit calculator performs bitwise operations (AND, OR, XOR, NOT, shifts) on binary numbers. It shows the binary representation of inputs and outputs, helping visualize how bit manipulation works.

Why Use This Tool

Bitwise operations are essential for low-level programming, permissions systems, flags, network masks, and optimization. A calculator helps verify operations and understand bit patterns visually.

When to Use It

Use a bit calculator when working with permission bits (Unix chmod), network subnet masks, flag-based systems, cryptographic operations, or debugging bitwise code.

Common Uses

  • Calculating Unix permission bits
  • Working with network subnet masks
  • Debugging bitwise operations

Frequently Asked Questions

What does XOR do?

XOR returns 1 when bits differ, 0 when they're the same. It's reversible (A XOR B XOR B = A), making it useful in cryptography and checksums.

What's the difference between logical and arithmetic shift?

Logical shift fills with zeros. Arithmetic right shift preserves the sign bit for signed numbers. Left shifts are typically the same for both.

Why use bitwise AND with masks?

AND with a mask extracts specific bits. For example, value AND 0xFF extracts the lowest 8 bits. It's how you isolate bit fields in packed data.