Text Justifier & Column Aligner

Text Justifier & Column Aligner: Distributes additional whitespace evenly between word boundaries to reach exact width.

Loading tool module...

About this text justifier & column aligner

Text Justifier & Column Aligner — browser-based utility.

How this tool works

Implements client-side Text Justifier & Column Aligner operations. Distributes additional whitespace evenly between word boundaries to reach exact width specifically designed for a typesetter justifies plain text to equal left and right margins by distributing inter-word spaces.

  1. Invisible Codepoint Detection: Scans character codepoint ranges against Unicode formatting categories (Cf, Cc), highlighting hidden characters.
  2. Unicode Normalization: Applies selected normalization form (NFC canonical composition, NFD decomposition, NFKC/NFKD compatibility).
  3. Pangu Spacing Heuristics: Evaluates character-pair boundaries via regex lookaheads, injecting half-width spaces between CJK ideographs and alphanumeric ASCII.
  4. Whitespace Collapsing: Cleans repeated spaces, trailing line spaces, and redundant blank lines according to user settings.

Worked example

Scenario: A typesetter justifies plain text to equal left and right margins by distributing inter-word spaces.

Sample input:

Text: 'CZOA local offline tools' | Target Column Width: 30

Processing: Distributes additional whitespace evenly between word boundaries to reach exact width.

Illustrative output:

CZOA local offline tools

Limits and verification

Does not alter intentional whitespace within code blocks when code-preservation mode is selected. Carefully preserves directional formatting markers (RLM/LRM) when bi-directional Arabic/Hebrew text is explicitly preserved.

Examples demonstrate an expected workflow; they do not prove every input or every branch of an external specification. Check important results with an independent source before using them for money, security, compliance, safety, or irreversible file changes.

Browser processing boundary

Tool input is processed by code running in the browser and is not intentionally sent to a CZOA processing API. The page can still request ordinary site assets, analytics, or advertising when those services are enabled. Browser extensions and managed-device software remain outside this tool's control.

Relevant references

These references govern or help explain the format, protocol, or calculation used here. Listing a reference does not claim certification or complete implementation of every optional feature.

Content owner: CZOA Tools · Last reviewed: 2026-09-15 · Review methodology

How to use it

  1. Enter, paste, or select your input data into the Text Justifier & Column Aligner workspace controls.
  2. Review available parameter fields, units, formats, or options configured for your task.
  3. Click the action button or observe immediate live calculations rendered in your browser runtime.
  4. Inspect the resulting output and any diagnostic messages, then copy or download the result if needed.

Frequently asked questions

How does Text Justifier distribute spaces?+

For each physical line it trims, splits words on whitespace, and if at least two words fit under the selected width, distributes the required ordinary spaces across gaps from left to right.

What did the browser fixture verify?+

At width 10, a bb ccc became a two-spaces bb two-spaces ccc, exactly filling ten characters.

Which lines are left unchanged apart from trim?+

Lines with fewer than two words or whose trimmed length already reaches the width are returned trimmed without added spacing.

Does it hyphenate or preserve visual typography?+

No. It uses JavaScript string length and ordinary spaces, not display width, Unicode grapheme width, hyphenation dictionaries, or proportional-font metrics.