Local XLSX tools

Transpose Excel table data

Swap rows and columns in selected XLSX table data locally. Preview the transposed result and download a new workbook.

Start with your workbook

XLSX · 128 MiB combined limit · Files stay in your browser

  1. Choose an XLSX workbook
  2. Select a sheet and review rows turned into columns
  3. Download a values-only XLSX workbook

Turn rows into columns

Transpose a selected worksheet table and review the changed dimensions before downloading.

For example, turn a vertical list of categories into columns for a different reporting layout.

How it works

  1. Choose an XLSX workbook.
  2. Select the worksheet and whether to include its original first row, then review the transpose.
  3. Download a new values-only XLSX workbook.

Output and limitations

Transpose creates a rectangular values-only workbook. It preserves blank positions with padding but does not retarget source formula dependencies.

Keep a copy of your original workbook and review downloaded results before using them.

Work with Excel files using code

For a task you run often, try a local script. Choose an example below for setup, code and details of what it preserves.

Transpose Excel data with Python

Swap row and column positions in one rectangular values-only worksheet.

View code and setup

Before you start

  • Install Python 3. Create the environment below, save the Python example as task.py, then run .venv/bin/python task.py in the folder containing input.xlsx. On Windows, use py -m venv .venv and .venv\Scripts\python.exe in place of .venv/bin/python. Replace Inventory with your worksheet name.
Set up Python environment
python3 -m venv .venv
.venv/bin/python -m pip install openpyxl

Python task.py
from openpyxl import Workbook
from openpyxl import load_workbook

workbook = load_workbook("input.xlsx", read_only=True, data_only=True)
sheet = workbook["Inventory"]

rows = list(sheet.iter_rows(values_only=True))
workbook.close()
output = Workbook()
target = output.active
target.title = "Transposed"
for column in zip(*rows):
    target.append(column)
output.save("transposed.xlsx")

Run the saved example
.venv/bin/python task.py

Limits and output

  • These data recipes use saved cell results, not recalculated formulas. They do not copy charts, styles, macros or workbook relationships. Keep the original file.
  • The entire selected sheet is held in memory. Excel row/column limits still apply after transposing. This does not adjust formula dependencies. Review formula-looking source text before writing it.

Documentation: openpyxl tutorial and workbook loading options

Frequently asked questions

What happens to formulas?

The transposed output uses stored cell values. It does not preserve formulas or rewrite their references.

Can I include the first row?

Yes. Choose whether the original first row participates in the transpose and review the result before downloading.

Is my workbook uploaded to a server?

The anonymous browser file tools process workbook contents locally. The website still makes ordinary requests for pages and sample files. Read the privacy page for details.

Which Excel files can I open?

Choose XLSX files with a combined size of 128 MiB or less for the editor and workbook transformations. Legacy XLS files and password-protected or encrypted workbooks are not supported.

Read the privacy policy

Related workbook tools