Back to Tools

Log Formatter

Clean, align, and beautifully format unstructured server logs.

Input Data

Make raw log lines easy to scan by eye

Plain log output is a grey wall of text. The Log Formatter takes lines you paste, trims stray spacing, drops empty ones and adds colour to the parts your eye looks for first: the severity keyword and the timestamp. It is a readability aid for humans, useful when you need to skim a few dozen lines or share a snippet.

Formatting steps

  1. Paste your logs into Input Data. Click Sample for three example lines with INFO, WARNING and ERROR entries, or Clear to empty the box.
  2. Press Process Now.
  3. Read the highlighted lines in the results panel. The summary row shows how many lines were formatted.
  4. Choose Copy or Download to keep the result.

What gets highlighted

  • ERROR, FAIL and FATAL appear as a red badge.
  • WARN and WARNING appear in amber.
  • INFO and DEBUG appear in blue.
  • Timestamps shaped like 2023-10-01 12:00:00, with a space or a T between date and time, and optionally fractional seconds ending in Z, appear in green.

Each line is shown in monospace with a thin separator, and long lines wrap instead of scrolling sideways. Only the first level word found on a line is highlighted, and matching ignores case.

Where it fits

  • Cleaning up a snippet before pasting it into a ticket or chat.
  • Checking an application's log format while you develop it.
  • Scanning a short access or job log for anything red before digging deeper.
  • Preparing example log lines for documentation.

What it does not do

Despite the word format, it does not realign columns, change date formats, reorder fields or parse structured data. The text of each line stays as it was, apart from trimming leading and trailing spaces. The colours exist only on screen: when you use Copy or Download, you get plain text without the colour badges, saved as result.txt. Log-level detection is by keyword, so a message that happens to include the word error inside a longer sentence can be coloured too. For counting levels use the Log Analyzer, and for JSON lines use the JSON Log Viewer. The formatting happens in your browser.

Related Tools


Frequently Asked Questions

Does the formatter align columns or change the log layout?
No. It trims each line, removes blank lines and adds colour highlights to the level and timestamp. The order, spacing between fields and wording of each entry stay exactly as you pasted them.
Will the colours be included when I copy or download?
No. Colours are applied only in the on-page view. Copy and Download use the plain text of the result, so the saved result.txt file has no highlighting or badges, only the trimmed log lines.
Which timestamp formats are detected?
Dates written as year-month-day followed by hours, minutes and seconds, separated by a space or the letter T, such as 2023-10-01 12:00:00 or 2023-10-01T12:00:00Z. Other formats, like day/month/year or syslog style dates, are left uncoloured.
Which log levels does it recognise?
ERROR, FAIL, FATAL, WARN, WARNING, INFO and DEBUG, matched as whole words in any letter case. Other level names such as TRACE, NOTICE or CRITICAL are not coloured, though the line itself is still cleaned and shown.
Can it handle very long lines?
Yes. Long lines wrap inside the result panel while keeping their original spacing inside the line, so you do not need to scroll horizontally. Extremely large pastes may feel slower since everything is processed in the browser.
Support Chat
We typically reply within minutes

Hello! 👋 Before we start, please tell us your name.