Nutter Tools
Nutter Tools

A free toolbox that runs in your browser. A tool for every job.

Your files never leave your device

Images

  • Convert images
  • Compress images
  • Resize images
  • Crop
  • Watermark

PDF & files

  • Merge PDFs
  • Split a PDF
  • Images to PDF
  • PDF to images
  • Remove photo location

Video & audio

  • Compress video
  • Convert video
  • Video to GIF
  • Convert audio
  • Trim audio

Everyday

  • QR codes
  • Passwords
  • Time zones
  • Unit converter
  • Word count
  • Webcam test

Developer

  • JSON formatter
  • Base64
  • Regex tester
  • Hashes
  • JWT decoder

Site

  • About
  • Contact
  • Settings
  • Privacy
  • Terms
  • Site map
  • llms.txt

Everyday

  • Images
  • Video
  • Audio
  • PDF & files
  • Text
  • QR codes
  • Units & math
  • Time & dates
  • Color
  • Passwords & IDs
  • Device tests
  • Sun & moon

For developers

  • JSON
  • Encoding
  • Regex & cron
  • Web & auth
  • Hashing & encryption
  • Config files
  • Network
  • Browser
  • AI
  • Fake data
© Nutter Toolsnutter.tools
  1. Home
  2. Text
  3. Multiline to single line
Your files stay on your device

Multiline to single line

Joins pasted multiline text into one line with your choice of separator, plus trim, collapse, and drop empty line options.

This tool is in beta

Still being tested. If a result looks wrong, tell us.

Report a problem

Paste multiline text and the single line appears here.

The escaped newline option writes the two characters backslash and n into the output, not a real break, which is what string literals and JSON need. Nothing is escaped in the pieces themselves: a line containing quotes or backslashes passes through as typed.

Multiline text

Up to 1,000,000 characters
SeparatorWhat sits between the joined pieces
Stray spaces and tabs at the line edges disappear
Inner runs of spaces and tabs flatten to one space
Off, blank lines stay and read as doubled separators

Lines split on Windows, Mac, and classic Mac endings alike, so a paste from anywhere joins clean. Runs in this tab as you type.

More text tools

  • Sort and clean lines
  • Word & character count
  • Case converter
All text tools

Was this tool useful?