# Number Base Converter

> Binary, octal, decimal and hex — any size. Runs entirely in your browser — nothing you paste is sent anywhere.

Source: https://toffeekit.com/tools/number-base-converter

**Category:** [Developer](https://toffeekit.com/category/developer) · **Price:** Free · **Runs:** in your browser, nothing is uploaded

Open the tool: https://toffeekit.com/tools/number-base-converter

**Also useful for:** binary, hex, octal, decimal, base

## How it works

1. Type a number into any of the four fields: Binary, Octal, Decimal or Hexadecimal.
2. The other three fields update instantly with the same value.
3. Optional prefixes 0b, 0o and 0x are accepted, for example 0xFF.
4. Click the copy button beside a field to copy that representation.

## FAQ

### How do I convert decimal to binary?

Type the decimal number into the Decimal field. The Binary field shows the result, so 255 becomes 11111111.

### How do I convert hexadecimal to decimal?

Enter the hex value in the Hexadecimal field, with or without a 0x prefix. The decimal value appears in the Decimal field, so FF gives 255.

### Is there a limit on how large the number can be?

No practical limit. The tool uses arbitrary-size integers, so very long binary or hex values convert exactly instead of rounding like normal JavaScript numbers.

### Why does a field turn red?

The text contains a digit that does not exist in that base, such as 2 in binary or 9 in octal. The message under the field names the base.

### Can it convert negative numbers or fractions?

No. It handles whole, non-negative numbers only. Two's complement and floating-point formats are not covered.

### Is Number Base Converter free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.

## Privacy

Number Base Converter runs entirely in your browser. Your files and text are processed on your device and are never uploaded.

## Related tools

- [JSON Formatter](https://toffeekit.com/tools/json-formatter) — Format, minify and validate JSON with clear errors.
- [Base64 Encode / Decode](https://toffeekit.com/tools/base64-encoder) — Encode text to Base64 or decode it back, UTF-8 safe.
- [URL Encode / Decode](https://toffeekit.com/tools/url-encoder) — Percent-encode query values or whole URLs.
- [HTML Entities](https://toffeekit.com/tools/html-entity-encoder) — Escape < > & and quotes, or decode entities.
- [JWT Decoder](https://toffeekit.com/tools/jwt-decoder) — Read a token's header, claims and expiry.
- [Hash Generator](https://toffeekit.com/tools/hash-generator) — MD5, SHA-1, SHA-256, SHA-384 and SHA-512 at once.

