Skip to content
Marvin's Toolbox.

Search tools

Type to filter all tools

Number Base Converter

Convert numbers between binary, octal, decimal, hexadecimal and any base up to 36. Type into any field and the others update as you go. Handles huge integers without losing precision and accepts 0x, 0b and 0o prefixes.

Everything runs locally in your browser. Your data never leaves your device.

base 2
base 8
base 10
base 16
base 36

Options

Next steps

Send this tool's output straight into another tool.

Convert text into every case at once: title case in the APA, AP, Chicago, MLA, Bluebook, AMA and NYT styles, sentence case, upper, lower, camelCase, snake_case, kebab-case and more.

Count words, characters, sentences, paragraphs, lines and more as you type, with estimated reading and speaking time.

Remove duplicate lines from a list or text, keeping the first occurrence. Optionally ignore case and whitespace, or drop blank lines too.

Replace text in two modes: plain find and replace all, or regular expressions with flag controls and capture group references like $1.

Compare two texts and see every added, removed and changed line highlighted, side by side or inline, with the changed words marked within each line. Ignore case, whitespace or blank lines, read a summary of how much changed, and export the result as a unified diff.

Paste a UUID to see what it carries: version, variant, and for time-based versions the exact timestamp, clock sequence and node. Also shows the raw bytes, the 128-bit integer and the URN form.

Decode Base64 to text or encode text to Base64. Paste into the top box, read the result below, and flip the direction with one click. Handles Unicode correctly, reads URL-safe Base64, and shows binary payloads as a hex dump you can download.

Convert numbers between binary, octal, decimal, hexadecimal and any base up to 36. Type into any field and the others update as you go. Handles huge integers without losing precision and accepts 0x, 0b and 0o prefixes.

Convert between scientific notation and full numbers as you type. Reads 1.23e5, 1.23 × 10^5 and plain numbers, shows the value written out, in normalized scientific notation and in engineering notation, and can round to any number of significant digits.

About the Number Base Converter Tool

This tool converts a number between binary, octal, decimal and hexadecimal at once, plus one extra base of your choice up to base 36. Type into whichever field you have, and the other fields follow.

The math runs on big integers, so a 100-digit number converts exactly. No rounding, no precision cliff at 53 bits.

What you can do

  • Convert binary to decimal and decimal to binary.
  • Convert hex to decimal and decimal to hex.
  • Convert between binary, octal and hex directly.
  • Convert to and from any base up to 36.
  • Convert huge integers without losing precision.
  • Group digits into readable blocks of 3 or 4.

How to use the Number Base Converter

  1. 1Type the number into the field that matches the base you have. Prefixes like 0x, 0b and 0o work too.
  2. 2Read the converted value in every other field.
  3. 3For an unusual base, set the custom row to any base from 2 to 36.
  4. 4Copy any field with the button next to it.

Integers only, any size

The converter works on whole numbers, positive or negative, and underscores or spaces between digits are ignored, so 1_000_000 parses fine. Fractions are out of scope, since most bases cannot represent them exactly. Because everything is computed on arbitrary-size integers, values far beyond what a 64-bit number holds still convert digit-perfect.

Convert between px, rem, em, percent, pt and viewport units with a configurable root font size. Type into any field and the others update as you go, set the parent font size for em math, and read a conversion table for common sizes.

Enter a resolution to get its simplified aspect ratio, or start from a ratio and one side to get the missing dimension. Knows the common ratios like 16:9, 4:3 and 21:9 and shows how close your size is to each.

Decode Base64 to text or encode text to Base64. Paste into the top box, read the result below, and flip the direction with one click. Handles Unicode correctly, reads URL-safe Base64, and shows binary payloads as a hex dump you can download.

Calculate AND, OR, XOR, NOT and bit shifts with a live binary view of every operand and the result. Enter numbers in decimal, hex, octal or binary and see each bit line up as you type.

Convert Unix file permissions between checkboxes, octal like 755 and symbolic notation like rwxr-xr-x, all kept in sync as you edit any of them. Covers setuid, setgid and the sticky bit, and shows the matching chmod command ready to copy.

Convert a color between HEX, RGB, HSL, HSV, HWB, CMYK, OKLCH and OKLAB. Type into any field and the others update as you go, or pick the color visually. Reads CSS color syntax and keeps alpha where the format supports it.