About Log Prettifier
Structured logs are written for machines, so reading a screen of JSON lines is hard work. Real output is also mixed: the app writes JSON, the proxy writes access logs, and a library prints a plain stack trace in the middle. Paste it all here and each record comes back in one shape, with time, level and message in order and everything else moved aside.
From there you can narrow it down. Show only warnings and up, or only errors, and expand extra fields onto their own lines when you need them. A count of records by level appears underneath, so you can see at a glance whether this was one error or three hundred.
How it works
Each line is tried against known formats: JSON objects, Apache and Nginx access logs, syslog, plain lines that start with a time or level, and logfmt key=value pairs. Common field names are recognized for the time, level and message, such as ts, severity and msg. Numeric levels from pino and bunyan are converted to names, and numeric times are converted to ISO dates. Colors from terminal output are stripped first.
Indented lines and lines such as Caused by: are attached to the record above them, so a stack trace stays with its error. Access logs get a level from their status: 5xx is an error, 4xx a warning, and the rest info. Text times stay exactly as written, so one log can show several styles, and no line is reordered.
How to use Log Prettifier
- Paste into the Raw log lines box, or press Upload to open a
.log,.jsonor.ndjsonfile. Try an example loads mixed formats. - Under Show, choose All, Warnings and up or Errors only.
- Under Extra fields, choose Inline, or One per line for records with many fields.
- Press Copy, or Download to save
prettified.log, which holds the filtered records.
Four formats, one layout
{"timestamp":"2026-03-14T09:26:53Z","level":"info","message":"Server started","port":8080}
2026-03-14 09:27:01,482 WARN [pool-1] Connection pool at 90% capacity
time=2026-03-14T09:27:18Z level=error msg="payment declined" order=A-1042 retry=2
203.0.113.7 - - [14/Mar/2026:09:27:40 +0000] "GET /api/orders/1042 HTTP/1.1" 503 512 "-" "curl/8.5.0"
2026-03-14T09:28:02Z ERROR Unhandled exception in worker
at processOrder (worker.js:88:13)
{"level":30,"time":1773480500000,"msg":"Retrying job","job":"email-digest"}2026-03-14T09:26:53Z INFO Server started port=8080
2026-03-14 09:27:01,482 WARN [pool-1] Connection pool at 90% capacity
2026-03-14T09:27:18Z ERROR payment declined order=A-1042 retry=2
14/Mar/2026:09:27:40 +0000 ERROR GET /api/orders/1042 HTTP/1.1 client=203.0.113.7 status=503 bytes=512 agent=curl/8.5.0
2026-03-14T09:28:02Z ERROR Unhandled exception in worker
at processOrder (worker.js:88:13)
2026-03-14T09:28:20.000Z INFO Retrying job job=email-digestThe 503 access log line became an error on its own, and the stack frame stayed with its record. The last line is from pino: level 30 is info, and its millisecond time became a date.
When it helps
- Reading a burst of JSON logs copied from a container or a cloud console
- Filtering a long paste down to the errors around an incident
- Reading proxy and application logs from the same period side by side
- Tidying a log excerpt before attaching it to a ticket
Tips for a better result
- Scrub before sharing. Logs often hold email addresses, tokens and IP addresses, and this tool does not remove them.
- Lines with no level are hidden by the Warnings and up and Errors only filters, so go back to All if something seems to be missing.
- When you need one field out of many JSON lines, a command such as
jqon the original file is a better fit than scrolling through this view.
Good to know
- It handles what you paste as a snapshot, and it cannot follow a live stream or connect to a log service.
- The page shows the first 2,000 records. Copy and Download include them all.
- Times are not converted or sorted. Each line keeps its own format and time zone, so a mixed paste can appear out of order.
- A format it does not recognize stays as a plain message with no level. Multi-line JSON objects need to be one per line first.
Questions people ask
Which log formats does it read?
JSON lines, logfmt, Apache and Nginx access logs, syslog, and plain text lines that begin with a time or a level. You can mix them in one paste.
Why was my access log line marked as an error?
Access logs have no level, so one is worked out from the status code: 5xx becomes an error and 4xx a warning. It helps failures stand out, though a 404 may be perfectly normal for you.
What happens to fields I did not ask to see?
Nothing is thrown away. Anything beyond the time, level and message is shown after the message as key=value, or on its own line if you choose One per line.
Can I upload a large log file?
Up to 5 MB through Upload. For much bigger files, filter them first with grep or jq and paste the part you care about.
What to use next
- JSON Formatter: to read one JSON log record in full
- Regex Tester: to build a pattern for pulling fields out of a log
- Unix Timestamp Converter: to convert a raw time field by hand
Last reviewed . Read our editorial policy.