Skip to main content
Case ChangerPro

Convert Tabs to Spaces

Tab-to-space conversion replaces tab characters with spaces so text looks the same in every editor. This tool replaces each tab, wherever it appears in a line, with four spaces or the number you set. It does not align columns to tab stops, so a tab that follows text always becomes the same number of spaces.

Copies a link to this tool with these settings. Your text is not in the link. The settings come after the #, which browsers don’t send to the server.

0 words0 characters0 without spaces0 lines0 sentences0 sec readProcessed in your browser. Your text is never uploaded.Never uploaded

Convert Tabs to Spaces examples

CaseInputOutput
Converts each tab to the default 4 spaces indented text indented text
With spaces per tab set to 2 indented text indented text

How to use

  1. Enter tab-indented text

  2. Set the spaces per tab (4 by default); each tab becomes that many spaces

  3. Get space-indented result