Number to Alphabetic String Converter
Convert natural numbers to bijective base-26 alphabetic strings (a-z) and back. Supports bulk conversion, history, and copy to clipboard.
| Input | Output | Copy |
|---|
Conversion History (0)
About
Bijective base-26 numeration maps every positive integer to a unique string over the alphabet {a…z} with no zero digit. This is the same system used by spreadsheet applications to label columns: 1 → a, 26 → z, 27 → aa, 702 → zz, 703 → aaa. Getting the mapping wrong in code generation, serialization, or data export pipelines produces silent off-by-one errors that corrupt downstream datasets. This tool computes both directions of the bijection and maintains a session history so you can audit conversions without re-entering values. It assumes input n ≥ 1; the mapping is undefined for zero and negative integers.
Formulas
The bijective base-26 system encodes a positive integer n as a string s = ckck−1…c1 where each character ci ∈ {a, b, …, z} maps to values 1 - 26.
The encoding algorithm iterates:
c = r + 1 → character a…z
n = n − 126 (floor)
Repeat until n = 0, then reverse the collected characters.
Where n = input positive integer, r = remainder after bijective modulo, c = character value (1 - 26), k = resulting string length.
Reference Data
| Number | Alpha String | Equivalent Expression |
|---|---|---|
| 1 | a | 1 |
| 2 | b | 2 |
| 13 | m | 13 |
| 26 | z | 26 |
| 27 | aa | 26 + 1 |
| 28 | ab | 26 + 2 |
| 52 | az | 26 + 26 |
| 53 | ba | 2 ⋅ 26 + 1 |
| 256 | iv | 9 ⋅ 26 + 22 |
| 702 | zz | 26 ⋅ 26 + 26 |
| 703 | aaa | 1 ⋅ 262 + 1 ⋅ 26 + 1 |
| 1152 | arh | 1 ⋅ 676 + 18 ⋅ 26 + 8 |
| 16384 | xfd | Excel max column |
| 18278 | zzz | 263 + 262 + 26 |
| 18279 | aaaa | First 4-letter string |
| 18432 | aafx | 1 ⋅ 263 + 1 ⋅ 262 + 6 ⋅ 26 + 24 |
| 475254 | zzzzz | Max 5-letter string |
| 1000000 | bdwgn | 6-digit milestone |
Frequently Asked Questions
lower-alpha convention.