← All Tools

Spreadsheet Column Converter

Translate between Excel-style column letters (A, B, …, Z, AA, AB, …, ZZ, AAA) and 1-based column numbers, and convert A1 cell references to R1C1 notation. Handy when you're scripting CSV pipelines, building Google Sheets formulas, or piping array indexes into openpyxl.

Letter ⇄ Number

 
 
0-based index letters length spreadsheet limit (Excel): 16384 (XFD)

A1 ⇄ R1C1 Cell Reference

 
 

Bulk Convert

One value per line. Mix letters and numbers freely — the tool detects each input.

Reference Table

NumberLettersNote
1Afirst column
26Zend of single-letter range
27AAtwo-letter range begins
52AZ
53BA
702ZZend of two-letter range (26 + 26²)
703AAAthree-letter range begins
16384XFDExcel hard limit
18278ZZZend of three-letter range

About the Encoding

Spreadsheet columns use a bijective base-26 system — not standard base-26. The difference matters: in standard base-26, "AA" would equal 0×26 + 0 = 0, but in spreadsheets every letter contributes (letter − 'A' + 1), so AA = 1×26 + 1 = 27. There's no zero digit. The conversion from number to letters is essentially a repeated n = (n − 1) / 26 with each step contributing 'A' + ((n − 1) mod 26). R1C1 is much simpler: row × column with both 1-indexed.