What Align Text helps you do
Pad lines to a width so they align left, center or right in a monospaced view. This is how you make plain-text tables and columns line up without a spreadsheet. Lines longer than the target width are left unchanged rather than cut.
Alignment is computed in your browser. Your text is not uploaded to Haivix.
How it works
Line tools split the pasted text into lines, apply one operation to the list, and rejoin it with a newline. A blank line is still a line, so it participates in sorting, numbering and shuffling unless you remove it first. The transformation runs in the browser and keeps the existing line order except where the tool's purpose is to change it. Nothing is uploaded, and the output replaces the preview rather than the source. If the input ends with a newline, the final empty line can affect a count or a shuffle; trim the input first when that matters.
How to use Align Text
- Paste the lines, each element separated as you need.
- Choose the target width and the alignment: left, center or right.
- Align and copy the padded text for a monospaced font.
- Check the widest line, since lines longer than the width are not cut.
When to use it
- Build a plain-text table for a terminal or email.
- Line up labels with values in a report.
- Format output to a fixed monospaced column.
- Align a list of numbers for a quick total check.
- Pad a block before pasting it into a code comment.
- Create a simple text banner or header.
When not to use it
- Do not use it for proportional fonts; the columns will not line up.
- Do not use it when the destination reflows whitespace.
- Do not expect it to truncate a long line.
Example
Padding names to a width of ten with right alignment lines up the trailing numbers in a monospaced font. A name longer than ten characters stays as it is, which breaks the column; choose a width at least as wide as the longest entry. Center alignment rounds the extra space to the left.
What you can do with Align Text
- Pad each line to a width from 8 to 500 characters.
- Align left, center or right.
- Leave overlong lines unchanged.
- Use spaces only, so the output stays plain text.
- Copy the aligned block.
- Run the alignment locally with no upload.
Example: check the line structure first
Paste a small sample and note how many lines it has, including blank lines and a possible trailing newline. The count explains most surprises after sorting, numbering or filtering.
Apply the operation and compare the first and last lines with the source. If the structure is right, run the full text; if not, remove the blank lines or trim the input first.
Copy or download the result and keep the original until the destination accepts it. Line tools are one-way, so the source is the only undo.
For a list pasted from a spreadsheet, check for hidden carriage returns or wrapping quotes before transforming it. A stray quote can sort differently or survive a filter that looks correct at a glance.
When the result feeds another tool, run a second pass only after confirming the first. Chaining a sort and a deduplication is safe, but chaining two numbering steps produces duplicated prefixes.
If the output is going into a version-controlled file, check the diff before committing. A blank-line or line-ending change can look like a content change in review even when the words are unchanged.
What to know before you start
- Alignment only looks correct in a monospaced font, because proportional fonts vary in glyph width.
- Wide or non-ASCII characters can break the column alignment.
- Lines longer than the width are not truncated.
- The tool counts code points, not terminal display cells.
Common mistakes
- Using a proportional font and expecting the columns to align.
- Choosing a width shorter than the longest line.
- Forgetting that wide or non-ASCII characters can break alignment.
- Padding a block that will be reflowed by the destination.
Troubleshooting
If the columns are off, the font is not monospaced or a line exceeds the width.
If the extra space is uneven, center alignment splits it with a smaller left pad.
If a line is unchanged, it was already at or beyond the target width.
If the output looks empty, the width was too small or the input was only blank lines.
Related standards and documentation
- A newline is a single line separator in Unix text; Windows files may use CRLF.
- Modern JavaScript sorts are stable, so equal lines keep their relative order.
- Blank lines are entries, not separators, in these transformations.
- A trailing newline is a text convention, not content; remove it before counting lines.
- Count the lines before you transform.
- Remove blanks first when they should not participate.
- Keep the original until the result is accepted.
- Check the last line for a trailing newline.