# Base-N Radix Converter

Convert numbers and text between any radix from 2 to 36, with custom alphabets and presets for Base58, Base62, and Crockford Base32.

> Canonical page: https://elysiatools.com/en/tools/base-n-radix-converter

- **Category:** Math & Numbers

- **Keywords:** base converter, radix, base-n, base58, base62, crockford base32, binary, hexadecimal, decimal, octal, number system, blockchain

## Overview

Convert between any radix from 2 to 36 — plus custom alphabets that go beyond 36 symbols.

**Why this exists.** A plain base-2/8/10/16 converter only covers the basics. Real-world encoding needs Base58 (Bitcoin addresses, where 0/O/I/l are dropped to avoid confusion), Base62 (URL shorteners, mixing 0-9+a-z+A-Z), and Crockford Base32 (case-insensitive, no I/L/O/U). This tool is the meta-converter that handles the whole base-N space.

**How it works.** Give it an input value, the source base (or a preset/custom alphabet), and the target base. The decoder maps each character to its numeric value using the alphabet, assembles a BigInt, then re-encodes into the target alphabet. Digits above 9 use a-z by default (standard positional notation).

**The presets.**
- **Base58 (Bitcoin)** — "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz" (no 0, O, I, l).
- **Base62** — "0-9A-Za-z", used by URL shorteners and ID generators.
- **Crockford Base32** — "0123456789ABCDEFGHJKMNPQRSTVWXYZ" (decodes I/L as 1, O as 0); designed for human entry.

**Custom alphabet.** Paste any string of unique characters; its length becomes the base. Useful for proprietary ID schemes, shuffled alphabets, or obfuscation.

**Tips.**
- Leading zeros are not meaningful in positional notation; the converter drops them.
- For very large inputs (hundreds of digits), conversion uses BigInt so it stays exact.
- Hex ↔ decimal ↔ binary round-trips are lossless; text↔number conversions depend on alphabet consistency.

## Inputs

- **Input** (text): e.g. FF (hex) or 1A2B3C
- **From Base** (number): e.g. 16 (up to 62 with a preset; ignored if custom alphabet used)
- **To Base** (number): e.g. 10 (standard bases use 2-36; up to 62 with a preset)
- **Preset** (select)
- **Custom Alphabet (overrides base)** (text): e.g. ABCDEFGHJKMNPQRSTVWXYZ (unique chars; length = base)

## When to use

- When decoding blockchain addresses or transaction hashes that use Base58 encoding to prevent character confusion.
- When generating or parsing short URLs and unique identifiers that rely on Base62 or Crockford Base32 formats.
- When converting large numeric values between standard bases like binary, octal, decimal, and hexadecimal using arbitrary-precision math.

## How it works

- Input the value you want to convert and specify its current base or select a predefined encoding preset.
- The converter decodes the input characters into an exact numeric value using BigInt to prevent precision loss.
- The value is re-encoded into the target base or custom alphabet of your choice to produce the final output.

## Use cases

- Decoding Bitcoin addresses or IPFS hashes encoded in Base58 to inspect their raw decimal values.
- Converting database auto-increment IDs into compact Base62 strings for URL shorteners.
- Translating legacy hexadecimal system logs into binary or decimal formats for debugging.

## Frequently asked questions

### What is the maximum base supported by this converter?

The tool supports standard bases from 2 to 36, and up to 62 using presets or custom alphabets.

### How does the tool handle very large numbers?

It uses BigInt calculations internally, ensuring that conversions of extremely large numbers remain exact and lossless.

### What is the difference between Base58 and Base62?

Base58 excludes visually similar characters like 0, O, I, and l to prevent human error, whereas Base62 uses the full alphanumeric set.

### Can I use my own custom character set for conversion?

Yes, you can input a custom alphabet string; the tool will use its unique characters and length as the base.

### Are leading zeros preserved during conversion?

No, standard positional notation ignores leading zeros, so they are dropped during the conversion process.

## Related tools

- [Graph Shortest Path (Dijkstra Step-By-Step)](https://elysiatools.com/en/tools/graph-shortest-path): Dijkstra with a full per-iteration trace: settled nodes, relaxations, distance table, and the final path; undirected or directed, negative weights rejected, unreachable targets reported.
- [Minimum Spanning Tree (Kruskal / Prim)](https://elysiatools.com/en/tools/minimum-spanning-tree): MST with both textbook algorithms: Kruskal's sorted accept/cycle-reject log and Prim's component growth, cross-checked to agree on the total weight; disconnected graphs rejected.
- [Set Operations Calculator (Union/Intersection/Difference)](https://elysiatools.com/en/tools/set-operations-calculator): Union, intersection, difference, symmetric difference, and Cartesian product of two comma-separated sets, with cardinalities and capped pair display.
- [Angular Velocity Converter (rad/s / rpm / deg/s / Hz)](https://elysiatools.com/en/tools/angular-velocity-converter): Convert angular velocity (angular speed) between radian per second (rad/s, SI base), revolutions per minute (rpm = 2π/60 rad/s), degrees per second (deg/s = π/180 rad/s), and hertz (Hz, used as revolution per second = 2π rad/s). Converts via rad/s to the target unit and lists all four equivalents. Note: 1 Hz in angular-frequency context means one full revolution per second, so 1 Hz = 2π rad/s ≈ 6.283185307 rad/s. Reference: vinyl LP 33⅓ rpm ≈ 3.49 rad/s, car engine idle ~800 rpm ≈ 83.8 rad/s.
- [Fatigue Limit Calculator (Goodman / Gerber / Soderberg)](https://elysiatools.com/en/tools/fatigue-limit-calculator): Mean-stress fatigue correction under cyclic loading. Given stress amplitude σ_a, mean stress σ_m, and material σ_uts / σ_-1 (endurance limit) / σ_y, compute safety factors from three classical criteria: Modified Goodman (linear, conservative), Gerber (parabolic, better for ductile metals), and Soderberg (uses σ_y, most conservative). Reports the governing (smallest) value and whether the operating point lies inside the Goodman line.
- [Advanced Case Converter](https://elysiatools.com/en/tools/advanced-case-converter): Convert between CamelCase, snake_case, kebab-case, PascalCase, and other naming conventions
- [ASCII Art Generator](https://elysiatools.com/en/tools/ascii-art-generator): Convert text to ASCII art using various fonts and styles
- [Indented List to ASCII Tree](https://elysiatools.com/en/tools/ascii-tree-from-indented-list): Convert a 2-space / 4-space / Tab indented hierarchical list (Markdown bullets, -, *, 1. prefixes optional) into a copyable ASCII directory tree. Two styles: Unicode box-drawing (├──└──│) for GitHub/Discord and classic ASCII (|--\--|) for plain text. Toggles for full guide lines, trailing spaces, and bracketed leaf nodes like docs/\[api.md\].

## Samples

- [Copyright-Free MP3 Audio Samples](https://elysiatools.com/en/samples/mp3-samples): Collection of royalty-free audio samples for testing and development purposes including nature sounds, meditation music, and ambient audio
- [Web Image Processing Python Samples](https://elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Android Image Processing Java Samples](https://elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion

## Related content

- [Base, Radix, and Hex Encoding Tools](https://elysiatools.com/en/hubs/base-radix-and-hex-encoding-tools): Convert text and bytes across Base variants, arbitrary radices, hex, and web escapes while checking reversible byte preservation.
- [Binary Encoding, File Forensics, and Integrity Tools](https://elysiatools.com/en/hubs/binary-encoding-file-forensics-integrity): Inspect bytes and signatures, identify file types, measure entropy, and verify hashes or checksums in one safe forensic workflow.
- [Math and Number Conversion Workflow](https://elysiatools.com/en/hubs/math-&-numbers-convert): Convert measurements, number bases, fractions, scientific notation, Roman numerals, and byte or bit values with a clear precision check.
