File & Format Converters · Free tool
Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal all at once. A clean, ad-free, instant online converter for developers and students alike.
Type in any field — the others update live. Supports arbitrarily large numbers via BigInt.
Advertisement
What it does
A free number base converter with binary, octal, decimal, and hexadecimal on screen at the same time. Type in any one field — the others update instantly. Uses BigInt, so arbitrarily large numbers work without precision loss.
Useful for low-level debugging (memory addresses in hex, bitmasks in binary), CSS color math (hex ↔ decimal channels), permissions (octal file modes like 755), and CTF/puzzle work. Prefixes like 0x, 0b, and 0o are accepted in the matching field.
Embed this tool on your siteShow snippetHide
Paste this snippet into any page. Loads on-demand (lazy), no tracking scripts, and sized to most dashboards. Replace the height to fit your layout.
<iframe src="https://freetoolarena.com/embed/number-base-converter" width="100%" height="720" frameborder="0" loading="lazy" title="Number Base Converter" style="border:1px solid #e2e8f0;border-radius:12px;max-width:720px;"></iframe>How to use it
- Type a number in any field — binary, octal, decimal, or hex.
- Watch the other three update live.
- Tap Copy next to any field to grab that representation.
- Negative numbers and BigInt-sized values are supported.
When to use this tool
- Reading hex memory addresses and converting to decimal for documentation.
- Setting Linux file permissions (translating rwx flags to octal 755 / 644).
- Bit-level debugging — converting binary masks to decimal or hex for register values.
- CTF (capture-the-flag) puzzles where ciphers use base conversions.
When not to use it
- Performance-critical conversions in production code — use the language’s native parseInt / toString.
- Floating-point binary representation analysis — use IEEE 754 visualizers instead.
- Cryptographic operations — use a proper crypto library, not casual base conversions.
Common use cases
- Decoding error code 0xFFFFE001 (4294959105 decimal) from a Windows event log.
- Converting Linux file mode 0755 (octal) to its binary 111 101 101 representation.
- Reading network mask 11111111.11111111.11111111.00000000 = 255.255.255.0 = /24 prefix.
- Converting RGB hex #FFD700 to decimal 16766720 for a programming exercise.
Frequently asked questions
- Which bases are supported?
- Binary (2), octal (8), decimal (10), hex (16), and arbitrary bases from 2 to 36.
- Can I convert negative numbers?
- Yes — negative numbers are represented with a leading minus sign, consistent with how most programming languages display them.
- Does it support floating-point conversion?
- Yes, within JavaScript's double-precision float range — though floating-point representation in bases other than 10 can produce repeating fractions.
- What about two's complement?
- The converter displays signed values with a minus sign. For bit-level two's complement representation (e.g. 8-bit), enable the 'show binary as two's complement' option.
- Why are file permissions in Linux written as 755 or 644?
- Octal (base 8) representation of the 9 permission bits (rwx for owner, group, other). Each digit represents 3 bits: 7 = 111 (read+write+execute), 6 = 110 (read+write), 5 = 101 (read+execute), 4 = 100 (read), 0 = 000 (none). 755 means owner has all permissions, group and others can read+execute (typical for executables and directories). 644 means owner can read+write, others can read (typical for files). 600 means owner-only access (sensitive files). Octal is just easier to type than 'rwxr-xr-x' or 'rw-r--r--' — same information, fewer keystrokes.
- Why are colors in CSS / web written in hex?
- Hex (base 16) compactly represents 8-bit color channels. Each pair of hex digits is one byte (0-255 in decimal, 00-FF in hex). #FF0000 = R=255, G=0, B=0 = pure red. The format matches how memory stores 24-bit colors (3 bytes). Decimal would be 'rgb(255, 0, 0)' — same color, more verbose. Hex is also easier to glance at and identify (FF = max, 00 = min, 80 = mid). Modern CSS supports both; designers prefer hex for compactness, programmers sometimes prefer rgb()/hsl() for arithmetic.
Advertisement
Learn more
Guides about this topic
- Developers & Technical · GuideHow to convert between number basesSwitch between binary, hex, octal, and decimal instantly. Free, no-signup guide with shortcuts for Unix permissions, hex colors, and memory addresses.
- Using Our Tools · GuideHow to merge PDFsMerge PDFs free and safely directly in your browser—no watermarks, sign-up, or uploads. Combine documents instantly with our online tool, no download required.
- Using Our Tools · GuideHow to split a PDFSplit a PDF by pages or ranges without uploading to a server. Clear steps, common pitfalls, and a free tool you can use instantly in your browser.
- Design & Media · GuideHow to compress images without losing qualityCompress images without losing quality — pick the right format, dimensions, and quality settings to shrink files fast. Free online guide, no signup.
- Design & Media · GuideHow to resize images without losing qualityResize images without quality loss — Lanczos vs bicubic, downscale tips, AI upscaling limits, web/print sizes, batch tools. Free guide, no sign-up.
- Design & Media · GuideHow to choose image formatsAnalyze JPG, PNG, WebP, AVIF, and SVG trade-offs with our free, browser-only guide. Instant format recommendations for quality, size, and compatibility.
Explore more file & format converters tools
- HEIC to PDFCombine iPhone HEIC photos into a single multi-page PDF. Reorder pages, pick A4/Letter or fit-to-image. Browser-only, no uploads, no watermarks.
- HEIC to WebPConvert iPhone HEIC photos to WebP — 25-35% smaller than JPG at the same quality. Universal modern-browser support. Batch in-browser, no uploads.
- HEIC to PNGConvert iPhone HEIC photos to lossless PNG right in your browser. Pixel-perfect output for editing pipelines and archival. Batch supported, no uploads.
- Timestamp ConverterTransform Unix timestamps to ISO 8601 dates and back instantly. Auto-detects milliseconds vs seconds for precise conversion with no sign-up.
- Text to Binary ConverterConvert any text to/from binary using UTF-8 codepoints. Multi-byte chars (emoji, non-Latin) handled correctly.
- Binary ConverterEdit any field to instantly transform numbers across all four bases in your browser. Use this free, ad-free live conversion tool with no sign-up.