Text Formatter

Paste messy text and get a clean, readable output. Supports email threads, chat logs, log lines, URL-encoded strings, Base64, and more.

Input Text

Formatted Output

How to Use the Free Online Text Formatter

Basic Usage

  1. Paste your text into the Input Text editor
  2. Select the format type or leave on Auto-detect
  3. Click Format to process your text
  4. The result appears in the Formatted Output editor
  5. Use Copy to copy the formatted result

Supported Formats

  • Email Thread: Auto-detect and clean up — select a format type or use Auto-detect
  • Chat / Messenger: Works with WhatsApp exports and generic chat logs
  • Log Lines: Cleans up ERROR, WARN, INFO, DEBUG log entries
  • URL Encoded: Decodes %20, %3D and formats query strings as key = value pairs
  • Base64: Decodes Base64 encoded strings, pretty-prints JSON if detected
  • Escaped String: Unescapes \n, \t, \" and Unicode sequences

Text Formatter Features

  • Auto-detect: Automatically identifies the format type from the pasted content
  • Email Thread Parser: Handles Outlook-style copy-paste where all headers are on one line
  • Subject / Body Split: Intelligently separates the Subject line from the body text
  • Ace Editor Output: Formatted output is displayed in a full code editor with syntax support
  • Copy Button: One-click copying of the formatted result
  • Dark Mode Support: Comfortable editing in both light and dark environments

Helpful Tips

  • For email threads copied from Outlook, just paste as-is — headers will be split automatically
  • Use Auto-detect for most cases; switch to a specific format if detection is wrong
  • For URL-encoded query strings, paste the full URL or just the query string part
  • Base64 strings containing JSON will be automatically pretty-printed after decoding
  • Load the example to see how email thread formatting works

Privacy & Security: All text processing happens entirely in your browser. Your data isn't sent to any server, ensuring complete privacy and security for your sensitive information.

Common Use Cases

  • Cleaning up forwarded email chains for readability
  • Decoding URL parameters from API calls or browser URLs
  • Parsing WhatsApp or Teams chat exports
  • Decoding Base64 tokens from JWT or API responses
  • Reading application log files with mixed log levels
  • Unescaping JSON strings stored as escaped text
  • Formatting raw text data for documentation or reports
  • Quickly decoding encoded data during debugging

Send Feedback or Request