An address usually lives as a stack: a name, a flat or house line, a street, a town, a postcode, each on its own line. That stack is how addresses are written, printed on labels and stored in most systems. But now and then a form gives you a single-line field and nowhere to put the breaks, and pasting the stack in either fails, truncates at the first line, or stores only part of the address.

This guide shows how to flatten an address block into one line with the free Remove Line Breaks tool on Ovatly, and just as importantly, when not to. The honest warning comes first: a joined address is a workaround for one-line fields only. Most of the time, the separate lines are the correct form of an address, and flattening one that did not need flattening creates work for whoever has to unflatten it later.

Contents

  • Quick answer
  • Why addresses are stacked in the first place
  • The two settings, and why only one fits this job
  • How to flatten an address block, step by step
  • Worked example: a four-line address on one line
  • When a form actually needs the separate lines
  • Limitations and alternatives
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

Copy the address block, open Remove Line Breaks, paste the block in, and choose Join everything. Every line break is removed, extra spaces are collapsed to single spaces, and the address comes out as one line you can paste into the single-line field. Check the result before pasting: the tool does not add commas or change any punctuation, so the joined line reads exactly as the lines did, just without the breaks. And only do this when the field truly takes one line; if the form offers separate fields or a multi-line box, keep the address stacked as it is.

Why addresses are stacked in the first place

The lines of an address are not decoration. Each line carries a different kind of information: who or what is at the address, the building, the street, the town or city, and the postcode or ZIP code. Sorting systems, label printers and delivery drivers all read addresses line by line, and many databases store the lines in separate fields so each part can be searched and checked on its own.

That is why the default should always be to keep an address stacked. Flattening is justified only when the destination cannot hold the stack: a single-line input that rejects line breaks, or a note field where the address is a reference rather than a delivery instruction. If the address will be used to actually send something, the lines matter and should stay.

The two settings, and why only one fits this job

The tool offers two ways to remove breaks. Keep paragraphs preserves the blank lines in your text, because a blank line between two blocks is what marks a paragraph break, and joins only the single line breaks inside each block. Join everything removes every break, blank lines included, and produces one block of text.

For an address, Keep paragraphs is the wrong tool: most address blocks have no blank lines, so it would join the lines anyway, but a block that does contain a blank line, say between the recipient name and the address itself, would come out as two blocks instead of one line. Join everything is the setting that guarantees a single line, which is the whole point of this job. Knowing the difference matters because picking the wrong one gives you an almost-right result that still breaks in a one-line field.

How to flatten an address block, step by step

  1. Copy the address exactly as it stands, with each part on its own line.
  2. Open Remove Line Breaks and paste the block into the box. Leading and trailing blank areas of the pasted text are trimmed in the result, so stray empty lines at the start or end do no harm.
  3. Choose Join everything, so every break in the block is removed.
  4. Read the joined address in the result box. Check that every part is present, in the original order, with single spaces between the parts.
  5. Copy the result and paste it into the single-line field. Keep your original stacked copy somewhere safe; the joined line is a version for this form, not a replacement for the address itself.

Worked example: a four-line address on one line

Take this address block, written for this guide as an illustration:

Flat 4, Rose Court
12 Mill Lane
Springfield
SP2 4QT

Pasted in with Join everything chosen, the result is one line:

Flat 4, Rose Court 12 Mill Lane Springfield SP2 4QT

Two details in that result show what the tool does and does not do. The comma after "Flat 4" survives because it was typed in the original; the tool never touches punctuation. And there are no double spaces anywhere, because extra spaces left by the original wrapping are collapsed to single spaces as the lines join. If you wanted a comma between every part, you would add them at the ends of the lines before joining, or type them into the joined line afterwards; the tool will not insert them for you.

When a form actually needs the separate lines

Before flattening anything, look at the form again. Separate fields labelled Address line 1, Address line 2, Town and Postcode want the stack, one part per field. A multi-line text box wants the stack pasted as it is. Even some single-looking fields accept pasted breaks without complaint, which you can test by pasting the stack and seeing whether the lines survive.

Flattening for those destinations causes real problems. A joined address stuffed into Address line 1 leaves the other fields empty and can fail validation that expects a postcode in its own field. On a printed label, one long line may overflow or wrap at an arbitrary point, splitting the address worse than the original breaks did. The one-line version is for one-line destinations only.

Limitations and alternatives

The tool does one thing: it removes line breaks from pasted text. It does not understand addresses, so it cannot check a postcode, split a joined address back into lines, or tell you which format a form wants. Once an address is joined, the line structure is gone from that copy, which is why keeping the stacked original matters.

It also works on breaks, not on other formatting. If a part of the address is hyphenated and happens to split across two lines in your source, the halves are joined with the hyphen kept; removing that hyphen is a separate job for Find and Replace. And if your address is part of a longer pasted block with lists in it, be careful: bullet points on separate lines would be joined into the surrounding text, so paste the address block on its own.

The alternative, for a single address, is simply typing it on one line yourself. The tool earns its place when you have many blocks to flatten, or a long block where manual joining invites a missed break or a double space.

Common mistakes

  • Flattening an address a form wanted stacked. The most common error, and the hardest to undo at the other end. Check the destination first.
  • Expecting commas to appear. The tool joins lines and tidies spaces; punctuation is entirely your responsibility.
  • Joining with Keep paragraphs by habit. A blank line inside the block survives as a paragraph break, and the result is two blocks, not one line.
  • Discarding the stacked original. The joined line is a copy for one purpose. Keep the proper address in its lines.
  • Pasting the address inside a longer document. Surrounding lines, including any list items, get joined too. Paste the block alone.

FAQs

Which setting puts an address on one line? Join everything. It removes every line break in the pasted block, including blank lines, and produces one block of text, so a stacked address comes out as a single line.

Will the tool add commas between the parts of the address? No. It joins lines and collapses extra spaces to single spaces, but it does not add, remove or change punctuation. If you want commas between the parts, type them at the ends of the lines before you join, or add them afterwards.

Should I join my address for every form? No. Join only when the field is a single line that cannot hold line breaks. Many forms have separate fields or a multi-line box precisely because the lines matter, and pasting one joined line into the first field loses that structure.

What happens to a blank line inside the address block? With Join everything, blank lines are removed along with every other break, so the whole block becomes one line. A blank line only survives as a paragraph break when you choose Keep paragraphs instead.

Is my address uploaded? No. The joining happens in your browser; nothing leaves your device.

Conclusion

Flattening an address is a small job with one rule: do it only for a destination that truly takes a single line, and use Join everything in Remove Line Breaks so every break goes. Keep the stacked original as the real address, and add any commas yourself. For the opposite and more common job, unwrapping prose that arrived hard-wrapped, the Text and Writing Tools guides collection has the companion guides.

Related guide: How to Turn a Wrapped Email Thread Into Readable Text.