String Minifier

Collapse multi-line text into a single line — instantly.

About this tool

Some places simply refuse multi-line input: environment variables, JSON string values, CLI flags, CI secrets. Paste your text, click once, and get the same content with every line break stripped and the edges trimmed — ready to drop wherever a single line is required.

Features

  • Removes all line breaks — Windows and Unix line endings alike
  • Trims leading and trailing whitespace
  • One-click copy of the result
  • Instant — no processing on any server

FAQ

What exactly does it change in my text?

It removes every line break (CR, LF and CRLF) and trims whitespace from the start and end. Spaces and tabs inside the lines stay untouched, so your content isn't reformatted.

When is this useful?

Whenever a value must be a single line: .env files, JSON strings, YAML one-liners, CI/CD secrets, or long shell commands you want to paste as one argument.

Is my text sent to a server?

No. The transformation is a simple in-browser string operation — your text never leaves your machine.