macOS / binaries /

expand

/usr/bin/expand
Expand tabs to spaces, and vice versa

The expand utility processes the named files or the standard input writing the standard output with tabs changed into blanks. Backspace characters are preserved into the output and decrement the column count for tab calculations.

source: man