Word wrap
Wrap text so no line exceeds a set number of characters.
Related tools
Word wrap
Paste text and wrap it so no line runs past a set width — 80 characters by default, or any limit you type in. Use it to format commit messages and plain-text emails, fit code comments or documentation into a style guide's column limit, prepare text for terminals and fixed-width displays, or tame a wall of text pasted from a PDF.
Two wrapping modes cover the common cases. "Keep existing breaks" wraps each line on its own and leaves your line structure alone, so lists and already-broken text stay intact. "Reflow paragraphs" first joins the lines of each paragraph back together and then wraps the whole paragraph at the new width — the right choice when the text arrived pre-wrapped at some other width and you want clean, even lines. Blank lines between paragraphs are kept either way.
Beyond plain left-aligned wrapping, the alignment option can center every line by padding it with spaces from the left, or justify the text by stretching the spaces between words so each full line reaches the exact width — the last line of each paragraph stays natural. Words longer than the limit normally overflow on their own line; turn on "Break long words" to hard-split them at the width instead, which is handy for long URLs and identifiers.
Everything runs locally in your browser — nothing you paste is uploaded anywhere. The tally under the output shows how many lines went in and came out plus the longest line, so you can confirm the limit holds before you copy the result or download it as a .txt file.