DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
HomeEncodingNumber Base Converter

About Number Base Converter

Number Base Converter preview - Encoding tool

Convert between decimal, hex, octal, and binary. Part of the DevTools Surf developer suite. Browse more tools in the Encoding collection.

Use Cases

  • Converting hex memory addresses for low-level debugging
  • Translating CSS hex colors to decimal RGB values
  • Understanding binary flag values in bitfield configurations
  • Converting Unix permission octals for chmod verification

Tips

  • Convert hex color codes to decimal RGB values instantly
  • Use binary output to understand bitwise operations visually
  • Enter values with prefixes like 0x or 0b for automatic detection

Fun Facts

  • Hexadecimal notation was popularized by IBM in the 1960s for the System/360, replacing the octal system used by earlier machines.
  • The binary number system was formalized by Gottfried Wilhelm Leibniz in 1703, though he credited ancient Chinese I Ching as inspiration.
  • Octal (base-8) was common in early computing because the PDP-8 and other machines used 12-bit words divisible into four 3-bit groups.

FAQ

Which bases?
Binary (2), octal (8), decimal (10), hex (16). Plus custom base (2-36). All four common ones shown simultaneously for any input.
Does it handle negative numbers?
Yes — two's-complement representation for binary/hex. The tool assumes 32-bit or 64-bit context for negative values.
What about fractions?
Decimal fractions yes (0.5 in binary = 0.1). Non-terminating fractions get rounded; exact binary representations of some decimals are impossible (0.1 is repeating in binary).
Can I convert very large numbers?
Numbers up to 2^53 are precise (JavaScript Number limit). For bigger, use BigInt-specific tools.

Related Encoding Tools

Base64 EncodeBase64 DecodeHash GeneratorTimestamp ConverterBase58/Base32/Base85Base64URL EncoderBase64URL DecoderText ↔ Binary
New · Flagshipsimple REST client

REST Handler — Collections, env vars, history, cURL converter

Send requests, save collections (nested), swap environments, and convert between cURL / Collection JSON / REST Handler YAML.

Open

Popular tools

The most-used tools on DevToolsSurf, one click away.

Encoding & crypto

  • Base64 Encode
  • Base64 Decode
  • URL Encoder
  • URL Decoder
  • Hash Generator
  • JWT Decoder
  • JWT Encoder
  • UUID Generator
  • ULID Generator
  • Password Generator
  • Bcrypt Hash Tester

Converters

  • CSV to JSON
  • JSON to CSV
  • XML to JSON
  • JSON to XML
  • HTML → Markdown
  • HTML → React JSX
  • cURL to Code
  • Collection JSON → cURL
  • Swagger to Collection JSON
  • JSON → Go Struct
  • JSON → TypeScript Types

JSON & YAML

  • JSON Formatter
  • JSON Validator
  • JSON Viewer
  • JSON Minifier
  • JSON Diff
  • JSONPath Tester
  • YAML Formatter
  • YAML to JSON
  • JSON to YAML

Text & regex

  • Regex Tester
  • Text Diff
  • Case Converter
  • Word Counter
  • Markdown Preview
  • Slug Generator
  • Lorem Ipsum Generator
  • Markdown → PDF

CSS & color

  • CSS Beautifier
  • Minify CSS
  • Color Converter
  • Gradient Generator
  • Contrast Checker
  • Color Palette Generator
  • Flexbox Playground
  • Tailwind → CSS

Generators

  • QR Code Generator
  • Mock Data Generator
  • Favicon Generator
  • .gitignore Builder
  • README.md Generator
  • Dockerfile Generator
  • Sitemap Generator

API & networking

  • REST Handler
  • HTTP Header Analyzer
  • IP Address Lookup
  • CIDR Calculator
  • User-Agent Parser
  • HTTP Status Reference
  • OpenAPI Viewer

Date & time

  • Timestamp Converter
  • Timezone Converter
  • Cron Expression Parser
  • Duration Calculator
  • Age Calculator
  • Date Format Converter

Images

  • Image Converter
  • Image Resizer (Batch)
  • SVG Optimizer
  • Base64 ↔ Image
  • WebP ↔ AVIF Converter
  • Image Compressor

PDF tools

  • PDF Merger
  • PDF Splitter
  • PDF Compressor
  • Markdown → PDF
  • EPUB → PDF
  • MOBI / AZW → PDF
  • DOCX → PDF
  • HTML → PDF

Resources

  • Community feed
  • Themes marketplace
  • Pricing & credits
  • Privacy policy
  • Terms of service
  • Sitemap
  • robots.txt

Your account

  • Sign in
  • Dashboard
  • Run history
  • My profile
  • Settings
DevTools Surf logo
DevTools Surf919+ tools

Fast · privacy-first · client-side · © 2026

Home·Feed·ThemesPricing·Sign inPrivacy·Sitemap Feedback