Skip to content
YAS.SH
Text & Data🌐 YAS server-sideAPI availableintermediate

Number Base Converter

Converts numbers between decimal, hex, octal, binary and base-36 using BigInt.

Processed by YAS · not stored
Ready to runInstant execution
All tools →
Result
—

What does this tool do?

Converts numbers between decimal, hex, octal, binary and base-36 using BigInt.

Why would I use it?

  • You are debugging bit masks or addresses.
  • You want to convert large numbers beyond 64-bit precision.
  • You are working with color codes or IP math.

Real-life example

Input
255 (dec)
Output
ff (hex) · 377 (oct) · 11111111 (bin) · 73 (base-36)

BigInt handles arbitrarily large values.

Input → Process → Output → Next

Input
Enter a number and its base.
Process
YAS converts using BigInt arithmetic.
Output
The value in all supported bases.
Next action
Use the representation you need.

Common mistakes

  • Expecting floating-point conversions (this is integer-only).
  • Using negative bases or invalid digits.
  • Confusing hex prefixes (0x) with values.

What the result means

All outputs represent the same integer value.

Privacy & security

Your input is sent to YAS infrastructure because the tool requires server-side processing or public network queries. Input is not stored.

API

Endpoint
POST https://yas.sh/api/v1/tools/number-base-converter
Request Header
Content-Type: application/json
cURL
curl -X POST "https://yas.sh/api/v1/tools/number-base-converter" \
  -H "Content-Type: application/json" \
  -d '{"input":"255","from":10,"to":16}'
JavaScript
const res = await fetch("https://yas.sh/api/v1/tools/number-base-converter", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
  "input": "255",
  "from": 10,
  "to": 16
}),
});
const data = await res.json();
Python
import requests

r = requests.post("https://yas.sh/api/v1/tools/number-base-converter", json={"input":"255","from":10,"to":16})
data = r.json()
FieldTypeRequiredDescription
inputstringYesValue in the source base
fromintegerNo (default 10)Source base (2–36)
tointegerNo (default 16)Target base (2–36)
Success response
{ "result": { "input": "255", "from": 10, "to": 16, "value": "ff" } }

Convert numbers between bases 2–36 (BigInt, arbitrary precision).

Error responses
  • 400 VALIDATION_ERROR — invalid input or unsupported option.
  • 413 PAYLOAD_TOO_LARGE — input exceeds the 64 KB limit.
  • 429 RATE_LIMIT_EXCEEDED — rate limit exceeded (60 req/min).
Limits
  • Maximum input: 64 KB per request.
  • Rate limit: 60 requests/min per IP address.
  • Authenticated accounts benefit from higher tier quotas.
Ask YAS AI
🍪 Cookies & privacy. Essential cookies keep you signed in and remember language and theme. Google AdSense and reCAPTCHA are Google technologies: AdSense runs only after Accept All; reCAPTCHA loads on sign-in and contact forms. See how Google uses data: https://policies.google.com/technologies/partner-sites cookie policy · privacy policy.
Settings