Use the free Align Text Lines below: your data never leaves your browser — all work happens on your device, and nothing is uploaded to any server.
Why aligned lines look so much better
Plain text has no bold buttons, no columns and no margins, yet it can still look tidy. The trick is alignment. When every line starts or ends at the same place, the eye reads the block as one clean shape instead of a ragged pile of words. That is why menus, banners, code comments and old-school text art all rely on aligned lines. A block that lines up feels deliberate, and a block that does not feels like a rough draft.
Alignment is really about padding. A short line is filled out with spaces until it reaches the width you chose. Left-aligned lines all start at the same column and end wherever the words run out. Right-aligned lines all end at the same column and start wherever the padding leaves room. Centred lines sit in the middle, with the extra space split evenly on both sides. Nothing about the words changes, only the empty space around them.
Left, centre or right: which one fits
Left alignment is the default for reading. It matches how we read English, so it suits lists, notes and any text people will actually read line by line. Right alignment is the choice for numbers, prices and labels that should line up on the right edge, like a receipt or a small table. Centre alignment is for display: titles, banners, signs and short announcements that should draw the eye to the middle of the block.
The catch with all three is the font. Padding only lines up in a monospace font, where every character takes the same width. In a proportional font, a space is narrower than a letter, so carefully padded lines drift out of line. Paste your aligned text into a code editor, a terminal, a plain-text email or any tool that uses a monospace font, and the columns will hold. In a word processor, switch the font to something like Courier first.
How to use this tool
Paste your lines into the box, pick a width in characters, and choose left, centre or right. The width should be at least as long as your longest line, or the tool leaves that line untouched rather than cutting words off. The “trim each line first” option removes stray spaces at the start and end of each line before padding, which gives the cleanest result when you paste text copied from somewhere else.
Try it with a short banner. Type a title, pick a width of 40 and centre it, and you get a neat heading for a readme file or a comment block. Try it with a list of names and prices, right-aligned at a width of 30, and you get a tidy little table without opening a spreadsheet. Try it with a poem or a quote, centred at a width of 50, and the shape of the block itself becomes part of the presentation.
Common mistakes to avoid
The most common mistake is choosing a width shorter than the longest line and wondering why one line sticks out. The tool never shortens your words, so a long line simply stays long. The second mistake is mixing tabs and spaces before aligning. A tab is not a fixed number of spaces, so it throws the count off. Trim first, then align, and the result is predictable. The third mistake is previewing the result in a proportional font and thinking the tool failed. Switch to monospace and the alignment appears.
Aligned text is a small skill with a long history. Before graphical design tools, people built whole layouts out of aligned characters, and the habit survives wherever plain text still rules: code, logs, emails, terminal output and documentation. This tool does the fiddly counting for you, so you can get the tidy block without counting spaces by hand.
