Skip to tool
FeuTex · free tools runs in-browser no bloat built by LiMiT

Text Formatter Online

Paste text, choose formatting rules, and get a clean output instantly. Use it to normalize line breaks, trim and collapse whitespace, wrap long lines, and optionally add prefixes, suffixes, or line numbers.

Category: Text · URL: /tools/text-formatter-online.html
Formatter
Client-side only (runs in your browser).
Tip: turn on Trim line ends + Normalize newlines for most copy/paste cleanup.
Options

Whitespace cleanup

Wrapping

0 = off

Per-line edits

Tabs, numbering, line endings

Privacy: runs locally in your browser. No uploads, no tracking scripts.

How to use

Choose the rules you want, then format and copy/download the output.

  1. Paste your text into the input box.
  2. Select options (trim, collapse spaces, wrap width, prefixes, numbering, line endings).
  3. Click Format.
  4. Copy the output or download it as a .txt file.
Keywords this page targets (natural cluster): text formatter online, format text online, clean up text online, normalize newlines, remove extra spaces in text, trim whitespace from each line, collapse multiple spaces, remove empty lines, wrap lines online, word wrap text, add prefix to each line, add suffix to each line, number lines in text, convert tabs to spaces, convert LF to CRLF, make text readable, format paragraphs online, format list items from text, clean copied text from pdf, clean copied text from excel, fix line breaks in text
Secondary intents covered: Clean messy copied text from PDFs/emails/chats, Normalize line endings for Windows (CRLF) or Unix (LF), Wrap long lines to a fixed width for code blocks or emails, Remove blank lines and trailing spaces, Convert tabs to spaces for consistent indentation, Add a prefix/suffix to each line for bullets or comments, Add line numbers for reviewing or referencing text, Prepare text for pasting into forms, markdown, or tools

FAQ

Does this text formatter run in my browser or on a server?

It runs in your browser; the tool JavaScript formats text locally and does not send network requests.

What does “Normalize newlines” do?

It converts Windows (CRLF) and old Mac (CR) line breaks into Unix-style (LF) so line handling is consistent.

How does “Collapse internal spaces” affect indentation?

It collapses repeated spaces/tabs after the indentation part of each line, keeping leading whitespace intact.

Will wrapping break words?

It wraps at whitespace when possible; if a chunk has no spaces before the width, it falls back to a hard wrap.

How do I add bullets or comment markers to every line?

Use the Prefix field (for example, - or // ) and click Format.

Why is my output empty after formatting?

If “Remove empty lines” is enabled and your input is only whitespace/blank lines, everything may be removed.

How do I get Windows line endings in the output?

Set “Output line endings” to CRLF (\r\n) before formatting.