Right-Align Numeric Columns in a Table

Right-align numeric columns while keeping text columns left-aligned for professional-looking data tables.

Data Tables

Detailed Explanation

Right-Aligning Numbers

In professional data presentation, numeric values are typically right-aligned so that digits line up by place value. This makes it easy to compare magnitudes at a glance — you can instantly see that 1,000 is larger than 100 because the digits stack correctly.

Before (all left-aligned)

Product,Sales,Revenue,Growth
Widget A,1500,45000,12.5%
Widget B,230,6900,3.2%
Gadget C,12000,360000,25.0%
Gadget D,85,2550,-1.8%

After (text left, numbers right)

Product   | Sales |  Revenue | Growth
Widget A  |  1500 |    45000 |  12.5%
Widget B  |   230 |     6900 |   3.2%
Gadget C  | 12000 |   360000 |  25.0%
Gadget D  |    85 |     2550 |  -1.8%

Configuration

  1. Set the input delimiter to Comma.
  2. Set the output delimiter to Pipe |.
  3. Column 1 (Product): Left alignment.
  4. Column 2 (Sales): Right alignment.
  5. Column 3 (Revenue): Right alignment.
  6. Column 4 (Growth): Right alignment.

Per-Column Alignment Controls

The tool detects the number of columns from your input and displays individual left/center/right buttons for each column. This per-column control is what makes mixed alignment possible — no need to choose a single alignment for the entire table.

Center Alignment

For header rows or status columns, center alignment can also be effective. For example, centering a "Status" column that contains values like "OK", "WARN", and "ERROR" makes the table look balanced. You can set different alignments per column to achieve the exact layout you want.

Use Case

A financial analyst is preparing a quarterly report and needs numeric columns right-aligned for proper place-value comparison in a text-based table.

Try It — Text Column Aligner

Open full tool