tools/convert/number base converter
// convertnew

number base converter

decimal, binary, octal, hex and any custom base

BIN · 2 // enter a number above
OCT · 8 // enter a number above
DEC · 10 // enter a number above
HEX · 16 // enter a number above
custom (2–36) → // enter a number above
curl -sX POST 'https://api.whittly.dev/v1/base/convert' \
  -H 'Authorization: Bearer $WHITTLY_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"input":"255","fromBase":10,"toBases":[2,8,16]}'
const res = await fetch('https://api.whittly.dev/v1/base/convert', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer ' + apiKey,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ input: "255", fromBase: 10, toBases: [2, 8, 16] }),
});
const data = await res.json();
const { data } = await axios.post(
  'https://api.whittly.dev/v1/base/convert',
  { input: "255", fromBase: 10, toBases: [2, 8, 16] },
  { headers: { Authorization: 'Bearer ' + apiKey } }
);
// probulk conversionpro·history syncproupgrade →
// history
Pro Cloud Sync — upgrade
no operations yet