AnkhKit

Convert Tabs to Spaces Online — 2, 4, or 8 Spaces

Runs 100% in your browser — your files never leave your device.

Style guides and linters disagree, but sometimes you just need the indentation flipped. Paste your code or text, choose how many spaces each tab becomes — 2, 4, or 8 — and copy the converted result. It is the fastest way to satisfy an editor that insists on spaces. The conversion happens entirely in your browser, so private code never leaves.

How it works

  1. 1

    Paste your code or text

    Tab-indented content works best.

  2. 2

    Choose the space width

    Pick 2, 4, or 8 spaces per tab.

  3. 3

    Copy the converted text

    The spaced version appears live and copies with one click.

More text tools