BTC $64,505.00 −1.17% ETH $1,815.96 −0.77% USDT $0.9994 −0.02% BNB $590.51 −1.08% USDC $0.9997 −0.01% XRP $0.9557 −1.37% SOL $71.75 −0.99% TRX $0.3050 +0.39% FIGR_HELOC $1.04 — STETH $1,796.44 −1.86% HYPE $68.70 +2.84% ZEC $906.37 +0.33% XMR $493.53 −1.00% DOGE $0.0588 −1.13% BTC $64,505.00 −1.17% ETH $1,815.96 −0.77% USDT $0.9994 −0.02% BNB $590.51 −1.08% USDC $0.9997 −0.01% XRP $0.9557 −1.37% SOL $71.75 −0.99% TRX $0.3050 +0.39% FIGR_HELOC $1.04 — STETH $1,796.44 −1.86% HYPE $68.70 +2.84% ZEC $906.37 +0.33% XMR $493.53 −1.00% DOGE $0.0588 −1.13%

Tabs to Spaces Converter

Fix mixed indentation in code and text by converting tabs to spaces or back.

  • 100% Free
  • No sign-up
  • Runs in your browser

What is the Tabs to Spaces Converter?

Mixed tabs and spaces make code and text line up differently on every screen. Convert all tabs to spaces with the width you choose, or turn leading spaces back into tabs.

Features

Both directions

Tabs to spaces and spaces to tabs.

Tab width

2, 4, 8 or any width.

How to use the Tabs to Spaces Converter

  1. 1

    Paste your code or text.

  2. 2

    Pick the direction and width.

  3. 3

    Copy the result.

Who it is for

Code

Match a project's style rules.

Tips for better results

  • YAML files must use spaces, never tabs.

Questions people ask

Is it free?

Yes, free and private.

Which is better?

It depends on the project; most style guides for web code use spaces.

Trustpilot

What our customers say

4.8 / 5Trustpilot rating
FREE BITCOIN TOOLS

Stuck Bitcoin transaction?

Paste your TXID, see where it stands, and give it a free push. No signup, no wallet access.

Try the free accelerator
  • Free
  • No signup
  • Live status