Truncate, Pad & Wrap illustration

Truncate, Pad & Wrap

Shapes text to a fixed width: truncates to a character limit (with a proper ellipsis and word-boundary option), pads every line to equal length on the left, right or both sides, and hard-wraps paragraphs at a column limit without breaking words.

Runs 100% in your browser — nothing you paste leaves your device.

Notes

  • Truncation counts Unicode code points, not bytes — an emoji counts as one character.
  • Wrapping re-flows each paragraph separately and keeps blank lines between paragraphs intact.
  • Runs 100% in your browser — nothing you paste leaves your device.

Explore the idea

This interactive demo needs JavaScript.