UUID Studio

Number Base Converter

Convert between binary, octal, decimal, and hexadecimal.

  • đź”’ No data stored or uploaded
  • ⚡ 100% client-side
  • 🆓 Free, no account
Click Convert when ready

Override only when Auto cannot parse your paste. Changing this loads a matching sample into Input — click Convert to run. Use Load sample to cycle every format example.

All conversions

Read-only representations of the same 16 bytes. Every textual form is listed here, not in “Prefer format”.

Paste two values: if both sides are valid JSON, a structural diff appears; otherwise UUID / bytes are compared when both decode to the same format.

A
B

Create or edit JSON here (syntax colors), then format, validate, or convert - same as MongoDB $binary UUID blobs on the Convert tab once detected.

New document

Hash, HMAC, AES-GCM/CBC + RSA-OAEP, codecs, JWT decoding, UUID v4, and secure random - all client-side. JWTs use Base64URL (three segments), not a single MIME Base64 block - use Decode JWT below, not raw Base64 decode.

Examples

  • Decimal
    255
  • Hex
    0xff
  • Binary
    0b11111111

About Number Base Converter

Bit flags, color values, memory addresses, and file permissions all get written in different bases depending on context, and converting between them by hand is exactly the kind of arithmetic a computer should do instead.

Paste a number and this detects its base automatically - a `0x` prefix means hex, `0b` means binary, `0o` means octal, otherwise it's read as plain decimal - then shows all four representations side by side.

Uses BigInt internally, so it isn't limited to 32-bit values the way bitwise tricks in plain JavaScript would be.

FAQ

Does it support negative numbers?
No - only non-negative integers are supported, since binary/octal/hex representations of negative numbers depend on a bit width and signedness convention this tool doesn't assume.