Right-align Unicode
Quickly align Unicode data to the right. Runs entirely in your browser, so your data never leaves your device.
Runs on your device, nothing uploaded
0 chars · 0 lines
Output
Quickly align Unicode data to the right.
Type or paste above to see the result here.
What you paste never leaves this tab
Right-align Unicode is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, the text you paste is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.
- No upload
- No length limit
- Works offline once loaded
- Nothing stored or logged
How to use Right-align Unicode
- 1. Paste the text to align. Enter the Unicode text you want right-aligned into the input pane. Width is measured in monospace display columns, so CJK characters and emoji count as two and still line up.
- 2. Set Width and Fill character. Enter the total width, or tap Longest line to line every row up with the widest one, and pick which character to pad with on the left, such as a space, so the text sits flush against the right edge.
- 3. Copy the aligned text. The tool adds fill characters on the left until the text reaches the target width. Copy the result into a table, terminal output or fixed-width display.
When to use Right-align Unicode
Right-align Unicode pads text on the left with a fill character so it sits flush against the right edge of a fixed column width, counted correctly by visible character rather than byte. Use it for tabular text output involving Unicode characters.
- Formatting a numeric column with accented labels. A plain-text report lists values next to labels that include accented characters, and the columns misalign because a byte-based padding miscounts them. Right-aligning by visible character fixes the layout.
- Building a right-justified receipt in a monospace font. A generated receipt or invoice needs prices right-aligned against a fixed-width column in a monospace font. Right-aligning each value produces the clean, ledger-style layout.
- Lining up a scoreboard printed as plain text. A game's scoreboard is rendered as plain text output and needs scores right-aligned against player names of varying length. Right-aligning each score value keeps the columns tidy.
Examples
Right-align to width 6
Input
café
Output
..café
Right-align numbers to the longest line
Input
1.5 22.75 333
Output
..1.5 22.75 ..333
About the Right-align Unicode tool
Right-align Unicode runs as plain JavaScript in your browser tab, with no server behind it. Quickly align Unicode data to the right. Whatever you put in stays on your device from start to finish.
The tool is part of EditSafely's Unicode Tools section, 98 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.
You can shape the output with 5 settings, including Width, Fill character, Measure width in and Trim lines first, and the result refreshes the moment you change one. 2 worked examples further down the page show exactly what the tool produces for real inputs.
That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.
Frequently asked questions
Is Right-align Unicode free to use?
Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.
Is it safe to paste sensitive or confidential data?
Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.
How much text can I process at once?
There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.
Do I need to sign up or install anything?
No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.