---
title: Convert Number Bases API
slug: convert-number-bases
url: https://apyhub.com/creightonnick0/service/convert-number-bases
provider: nick creighton
categories: [Developer Tools]
tags: [number-conversion, base-conversion, radix, integer-formatting, developer-tools]
auth: api_key
---

# Convert Number Bases API

Convert integer strings between bases 2 to 36, with auto-detection for 0x, 0o, and 0b prefixes. Useful for radix formatting and mixed-base inputs.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `` | What it does Converts an integer string from one base to another, using the request body fields to… | 10 |

## About

## What it does
Number Base Converter converts integers between bases 2 through 36. Send a string value, optionally set from_base, and choose a to_base for the output. It accepts common prefixes like `0x`, `0o`, and `0b`, so you can pass hexadecimal, octal, binary, or plain base-N strings without pre-processing them first.

Use it when you need to normalize numeric identifiers, display values in a different radix, or support developer-facing inputs that may arrive in mixed formats. The input schema only requires `value`, with `to_base` and `from_base` available when you need to override the defaults. `from_base` can also be set to `0` to auto-detect the input base.

The endpoint returns a structured JSON response. That makes it easy to chain into internal tools, code generators, validators, or admin workflows where numbers need to be reformatted before storage, comparison, or display.

If your app handles bit flags, color codes, hashes, or low-level debugging values, Number Base Converter gives you a simple way to translate them without writing base conversion logic yourself.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/creightonnick0/service/convert-number-bases
