Text & Writing Tools

Join Text Online – Combine Multiple Lines into One Line

Paste text that sits on many lines and get it back as one line. Choose what goes between the lines, decide if empty lines stay or go, then copy the result or download it as a .txt file. It works in your browser page, so there is nothing to install.

0 characters

Options

Processing runs in this page using JavaScript. Do not paste confidential information.

Why use this tool?

Why use this tool?

Text often arrives broken into many lines: a list copied from a spreadsheet, a column of names, lines from a PDF, or notes from a chat. Fixing it by hand means deleting line breaks one by one. A text joiner does it in one step: it turns a multiline list into a single line you can paste into a form, a search box, a code file or a message. It also saves you from stray empty lines that break the layout.

How to use it

How to use it

  1. Step 1

    Add your text

    Paste or type your lines into the Input text box, or press Load example to try sample text.
  2. Step 2

    Choose the separator

    Set Join with to what you want between the lines. The default is one space.
  3. Step 3

    Decide about empty lines

    Leave Keep empty lines off to skip blank lines, or turn it on to keep them.
  4. Step 4

    Check the result

    Read the joined text in the Result box.
  5. Step 5

    Copy or download

    Press Copy result, or Download .txt to save the file. Press Clear to start again.

How to combine multiple lines into one line

Put your text in the Input text box, one item per line. The tool joins those lines into a single line. By default the lines are joined with a single space, so a list of words becomes a normal sentence-style line. Change the Join with option if you need something else between the lines.

Copyable sample text

Paste this into the input box, or press Load example: apple banana cherry With the default setting (join with one space) the result is: apple banana cherry

Join lines with a space or your own separator

The Join with option controls the text placed between two lines. The default is one space. Use it when you want to join lines with a comma, a dash, a pipe or any other separator, for example to turn a column of items into a list you can paste into a form or a code file.

Remove empty lines when you join text

The Keep empty lines option is off by default. That means blank lines in your input are skipped, so you do not get double spaces or gaps in the result. Turn it on if the blank lines matter and you want them kept.

Copy the result or download it as a .txt file

Use Copy result to put the joined text on your clipboard (the button shows Copied! when it works). Use Download .txt to save the result as a plain text file. Clear empties the tool so you can start again.

Features explained

Join multiple lines into one line

Turns text written on many lines into a single line, so you do not have to delete line breaks by hand.

Join with space or custom separator

The Join with option sets what goes between the lines. The default is a single space.

Keep or remove empty lines

Keep empty lines is off by default, so blank lines are left out. Switch it on to keep them.

Copy result to clipboard

One click copies the joined text. The button changes to Copied! so you know it worked.

Download as .txt

Saves the result as a plain text file, useful for longer text you want to keep.

Load example

Fills the input with sample text so you can see how the tool works before using your own.

Reset and clear

The Clear button resets the tool, which is handy when you want to join a new list.

Runs in the page

The text is processed with JavaScript in the page. No request to a server was found in the tool code.

What can you use it for?

Turn a column into one line

Copy a column of names, IDs or emails from a spreadsheet and join it into one line.

Fix text copied from a PDF or email

Text copied from a PDF or an email often has a line break at the end of every line. Join the lines to get a clean paragraph.

Prepare lists for forms and search boxes

Some forms and search fields accept only one line. Join your list first, then paste it in.

Clean up notes and keyword lists

Join keyword, tag or hashtag lists that you wrote one per line, and skip the empty lines.

Make code and config values

Join a list of values with your chosen separator before you paste it into a script, query or config file.

Tool information

Tool typeText joiner (multiline to single line)
InputPlain text, pasted or typed in the Input text box
Default separator (Join with)One space
Empty lines (Keep empty lines)Skipped by default (option is off)
OutputJoined text in the Result box
CopyCopy result button
Download format.txt (plain text)
ProcessingIn the page with JavaScript (client-side)

Benefits

  • Saves time compared with deleting line breaks by hand.
  • Gives you control over what sits between the lines.
  • Skips empty lines by default, so the result stays clean.
  • Copy or download the result in one click.
  • Works with simple pasted text, with nothing to install.

Limitations

  • It works with plain text. The code shows no file upload, so paste your text into the box.
  • The download is a .txt file only.
  • No maximum text size is set in the tool code, but very large text depends on your browser and device.
  • It joins lines only. It does not sort, remove duplicates or change the words.

Privacy

This tool processes your text in the page using JavaScript, and no network request was found in the tool code. Even so, do not paste confidential information such as passwords or private data.

Tips

  • Check the Join with value before you copy. A space and a comma give very different results.
  • If your result has gaps, make sure Keep empty lines is off.
  • Use Load example first if you want to see how the options change the result.
  • Press Clear before you paste a new list so old text does not mix in.

Frequently asked questions

How do I join multiple lines into one line online?

Paste your lines into the Input text box. The tool joins them into one line in the Result box. Then copy it or download it as a .txt file.

How do I join lines with a space?

A single space is the default for Join with, so you do not need to change anything. Paste your text and the lines are joined with spaces.

Can I join lines with a comma or another separator?

Use the Join with option to set the text that goes between the lines.

Does the tool remove empty lines?

Yes, by default. Keep empty lines is off, so blank lines are skipped. Turn the option on if you want to keep them.

How do I remove line breaks from copied text?

Paste the text into the tool. Joining the lines removes the line breaks between them and gives you one line.

Can I download the joined text?

Yes. Press Download .txt to save the result as a plain text file.

Is my text uploaded to a server?

The tool processes text in the page with JavaScript, and no network request was found in the tool code. Still, avoid pasting confidential information.

Is there a limit on how much text I can join?

The tool code sets no maximum. Very large text may be slow because it depends on your browser and device.