Number Base Converter
Convert numbers between binary, octal, decimal, hexadecimal, and any custom base from 2 to 36. Type in any field to see live conversions with step-by-step work.
32-bit Binary Representation
Step-by-Step Conversion
How It Works
Every positional number system works the same way: each digit's value depends on its position. In base b, the rightmost digit is multiplied by b0 = 1, the next by b1, then b2, and so on.
To convert from any base to decimal: multiply each digit by the base raised to its position power, then sum all values. For example, 10112 = 1×2³ + 0×2² + 1×2¹ + 1×2&sup0; = 8 + 0 + 2 + 1 = 11.
To convert from decimal to any base: repeatedly divide by the target base and collect the remainders in reverse order. For example, 11 ÷ 2 = 5 r 1, 5 ÷ 2 = 2 r 1, 2 ÷ 2 = 1 r 0, 1 ÷ 2 = 0 r 1 → reading remainders bottom-up gives 10112.
Number Systems
- Decimal (Base 10): The standard number system we use daily. Uses digits 0-9.
- Binary (Base 2): Computer's native language. Only uses 0 and 1.
- Octal (Base 8): Uses digits 0-7. Common in Unix file permissions.
- Hexadecimal (Base 16): Uses 0-9 and A-F. Compact representation of binary — each hex digit represents 4 bits.
Common Uses
- Binary: Low-level programming, bitwise operations, computer architecture
- Octal: File permissions in Unix/Linux (e.g., chmod 755)
- Hexadecimal: Colors (#FF5733), memory addresses (0x1A2B), MAC addresses
Binary Bit Ranges
- 1 bit: 0 or 1
- 8 bits (1 byte): 0–255 unsigned, −128 to 127 signed
- 16 bits: 0–65,535 unsigned, −32,768 to 32,767 signed
- 32 bits: 0–4,294,967,295 unsigned, −2,147,483,648 to 2,147,483,647 signed
Quick Reference
| Decimal | Binary | Octal | Hex |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 |
| 2 | 10 | 2 | 2 |
| 4 | 100 | 4 | 4 |
| 8 | 1000 | 10 | 8 |
| 10 | 1010 | 12 | A |
| 15 | 1111 | 17 | F |
| 16 | 10000 | 20 | 10 |
| 42 | 101010 | 52 | 2A |
| 255 | 11111111 | 377 | FF |
| 256 | 100000000 | 400 | 100 |
| 1024 | 10000000000 | 2000 | 400 |
| 65535 | 1111111111111111 | 177777 | FFFF |
Feedback
Help us improve this page by providing feedback, and include your name/email if you want us to reach back. Thank you in advance.
Sending...
Feedback sent. Thank you!
Error occurred!
-
-
-
-
-
-
-
-
- ABI Encoder / Decoder
- Block Estimator
- Calldata Cost
- CREATE2 Address
- ENS Availability
- ENS Cost Estimator
- ENS Lookup
- ENS Namehash
- ENS Record Viewer
- ENS Subname Explorer
- ERC-20 Unit Converter
- Gas Estimator
- HD Wallet Derivation
- Merkle Tree Visualizer
- 4-Byte Selector Lookup
- Solidity Storage Layout
- Transaction Decoder
- Vanity Address Estimator
- Wallet Address Validator
- Wei/Gwei/Ether Converter
-
-
-
-
-
- API Response
- ASCII Table
- Code Bug Detector
- Code Explanation
- CSS Beautifier
- Env Parser
- GraphQL Query
- Syntax Highlight
- HTML Beautifier
- JS Beautifier
- JSON Formatter
- JSONPath
- JWT Decoder
- JS keyCodes
- API Lorem Ipsum
- RegExp
- Regex Library
- Semver Compare
- Shader Playground
- SQL Beautifier
- Temporal Date Explorer
- TOML Formatter
- Code Unminifier
- XML Beautifier
-
-
-
-
- Air Fryer Converter
- Baking Ratio
- Brining Calculator
- Caffeine Tracker
- Canning & Preserving
- Coffee Ratio Calculator
- Cooking Units
- Decision Dinner
- Defrost Time Estimator
- Egg Size Converter
- Homebrew ABV
- Ingredient Substitution
- Meat Doneness Guide
- Oven Temp Converter
- Pan Size Converter
- Recipe Scaler
- Smoke Point Reference
- Sourdough Hydration
-
-
-
-
- 3D Model Viewer
- Aspect Ratio
- Business Card Designer
- CSS Button
- Chat Screenshot Generator
- Color Scheme
- CSS Animation
- CSS Flexbox
- Gradient Creator
- CSS Grid
- CSS Border Radius
- CSS Box Shadow
- CSS Transform
- Flowchart Maker
- Font Pairing
- Font Size
- Glassmorphism
- Placeholder Images
- Screen Ruler
- SVG to 3D Model
- 3D Text Generator
-
-
-
-
-
-
-
-
-
- Amortization
- Break-Even
- Budget Planner
- Compound Interest
- Crypto Profit/Loss
- Debt Payoff
- Discount
- Effective Interest
- Emergency Fund
- Envelope Budget
- FIRE Calculator
- Garage Sale Pricer
- Inflation Calculator
- Simple Interest
- Invoice Calculator
- IRR Calculator
- Mortgage
- Net Worth Calculator
- NPV Calculator
- Portfolio
- Profit Margin
- Property Decider
- Rent vs Buy
- Retirement Calc
- ROI Calculator
- Salary vs Hourly
- Savings Goal
- Subscription Cost Tracker
- Tax Calculator
- VAT
-
-
-
- 2048
- Backgammon
- Blackjack
- Breakout
- Chess
- Click Speed Test
- Connect Four
- Crossword Puzzle
- Hangman
- High or Low
- Lander
- Memory Cards
- Minesweeper
- Number Guessing
- Pixel Game Maker
- Reaction Time Test
- Rock Paper Scissors
- Word Scramble
- Snake
- Solitaire
- Sprite Sheet Editor
- Sudoku
- Tetris
- Texas Hold'em
- Tic-Tac-Toe
- Tournament Bracket
- Video Poker
- Word Search
- Wordle
-
-
-
-
- Allergy Diary
- BAC Calculator
- Blood Pressure
- Blood Sugar
- Body Mass Index
- BMR Calculator
- Body Fat Calculator
- Body Surface Area
- Calorie Calculator
- Heart Rate Zones
- Hydration Tracker
- Ideal Weight
- Macro Calculator
- 1RM Calculator
- Ovulation Calculator
- Pace Calculator
- Pregnancy Calculator
- Protein Intake
- Sleep Calculator
- Stretching Routine Builder
- Symptom Diary
- TDEE Calculator
- Training Zone
- VO2 Max
- Water Intake
-
- AC Size
- Address Change Checklist
- Carbon Footprint
- Cleaning Schedule
- Declutter Checklist
- Electricity Bill Splitter
- Energy Cost
- Heating Cost
- Home Insurance
- Laundry Load
- Moving Boxes
- Moving Checklist
- Pantry Inventory
- Rent Splitter
- Room Lighting
- Solar Panel Estimator
- Storage Unit Calculator
- TV Size & Distance
- Water Usage
-
-
- Background Remover
- Face Blur
- Favicon Generator
- GIF Maker
- Image Compressor
- Crop Image
- Image Filter
- Image Flipper
- Image Metadata
- Negative Colors
- Image Resizer
- Image Rotator
- Image to ASCII Art
- Image to Base64
- AI Image Upscaler
- Image Watermark
- JPG to PNG
- Meme Generator
- Image Object Detector
- OCR - Image to Text
- Passport Photo Maker
- Photo Collage Maker
- PNG to JPG
- SVG Studio
-
-
-
- Equation Solver
- Exponent Calculator
- Factorial Calculator
- Fibonacci Sequence
- Fraction Calculator
- Fraction Simplifier
- GCD Calculator
- GCD/LCM
- Least Common Multiple (LCM) Calculator
- Logarithm Calculator
- Magic Square
- Matrix Calculator
- Number Base Converter
- Pascal's Triangle
- PDE Solver
- Prime Checker
- Prime Factorization
- Roman Numbers
- Scientific Notation
- Truth Table Generator
-
-
-
-
-
-
-
-
-
-
- Electric Field Calculator
- Kinetic & Potential Energy Calculator
- Force Calculator (F=ma)
- Gravitational Force Calculator
- Momentum Calculator
- Ohm's Law Calculator
- Physics Simulator
- Projectile Motion Calculator
- Physics Unit Converter
- Velocity & Acceleration Calculator
- Wave Properties Calculator
- Work & Power Calculator
-
- Daily Journal
- Daily Planner
- Eisenhower Matrix
- Focus Mode Timer
- Goal Tracker
- Habit Tracker
- Infinite Whiteboard
- Kanban Board
- Meeting Cost
- Meeting Notes Template
- Scratchpad
- Pomodoro Timer
- PowerPoint Generator
- Pros and Cons List
- Random Decision
- Reading Time
- Signature Pad
- Sticky Notes
- Survey Builder
- Task Estimator
- Time Tracker
- Todo List
- Typing Speed Test
- Words Per Minute
-
-
-
-
- BRRRR Calculator
- Cap Rate Calculator
- Capital Gains Tax on Property
- Cash Flow Analyzer
- Closing Costs Estimator
- Home Affordability Calculator
- House Flipping Calculator
- Offer Price Calculator
- Property Comparison
- Property Tax Estimator
- Renovation ROI Calculator
- Rent vs Buy Calculator
- Rent Increase Calculator
- Depreciation Calculator (Rental)
- Rental Yield Calculator
- Repair vs Replace Calculator
- Stamp Duty Calculator
- Vacancy Rate Estimator
-
-
-
-
- Broken Link Checker
- Canonical URL Checker
- Favicon
- Heading Structure
- Keyword Density
- Meta Tags
- Mobile-Friendly Test
- Open Graph Tags
- Page Load Time Analyzer
- Redirect Checker
- robots.txt
- Schema Markup
- SEO Optimized Checklist
- XML Sitemap
- Time on Page Tracker
- Page Title & Desc.
- Twitter Card Generator
- Core Web Vitals Checker
-
-
-
-
-
-
-
-
- Case Converter
- Character Frequency
- Text Diff Viewer
- Fancy Text Generator
- Regex Find & Replace
- Line Number Adder
- Lorem Ipsum
- Lowercase
- Number to Words
- Remove Duplicates
- Replace
- Reverse Text
- Slug Generator
- Sort Lines
- Speech to Text
- Counter
- Text Diff
- Text to Speech
- Titlecase
- Uppercase
- Whitespace Normalizer
- Words Frequency
-
-
-
- Acceleration
- Substance Amount
- Angle
- Area
- Astronomical
- Base Converter
- Capacitance
- Electric Charge
- Clothing Size Converter
- Data Transfer
- Data Storage
- Density
- Energy Converter
- Force Converter
- Frequency Converter
- Fuel Economy
- Illuminance
- Inductance
- Length / Distance
- Power
- Pressure
- Electrical Resistance
- Ring Size Converter
- Time
- Shoe Size Converter
- Speed
- Temperature
- Viscosity
- Volume
- Weight
-
-
-
-
- Clear UX Checklist
- Dark Mode Checker
- Mobile vs Desktop
- DOM to Image
- Error Handling Checker
- Fast Load Time Checker
- Headers
- htpasswd
- HTTP Status Codes
- Input Validation Checker
- Responsive Checker
- Popular Pages
- Reader Mode
- Robots.txt
- RSS Feed Reader
- Search Queries
- Web Page Text Extractor
- URL Parser
- User Agent Parser
- WebSocket Tester
-
-