# Text & log viewer

> Open large log and text files online. Regex search, level filters, a timeline of errors, repeated-message grouping, bookmarks and JSON lines. Private.

Canonical: https://cromagnon.app/tools/text-log-viewer
Last updated: 2026-10-26

- Category: View
- Formats: LOG · TXT · JSONL · OUT
- Use it: https://cromagnon.app/tools/text-log-viewer (free, runs in the browser)

## What it does

Open log files and long text files that are too big or too noisy for a normal editor, and find what matters in them. Every line is numbered; search with plain words or regular expressions and jump between matches; show only matching lines with a few lines of context; hide noise; filter by log level and time; see a timeline of errors; and group repeated messages so one error that happened 5,000 times appears once with a count. It reads server logs, app logs, Android logcat, Apache and Nginx access logs, syslog and JSON logs in any text encoding.

## How to use it

1. Drop a .log, .txt or other text file onto the page, or paste text from the clipboard.
2. Type in the search box. Press Enter for the next match and Shift+Enter for the previous one.
3. Tick Only matching lines to hide everything else, and choose how many lines around each match to keep.
4. Use the level chips (error, warn, info…) and the hide box to cut the noise.
5. Click a bar in the timeline to look at one slice of time, or set From and To.
6. Download or copy the lines you're looking at.

Tip: Start broad: filter to error and fatal, read the repeated messages panel, then search for the ID or time of the first error to see what happened just before it.

## Searching with regular expressions

Tick Regex to search with a regular expression, a small pattern language supported by almost every programming tool. Plain words still work, and the patterns below cover most log work. Whole word stops a search for 500 matching 5001, and Match case separates ERROR from error.

- **timeout|refused**: Either word: lines with timeout or refused.
- **order \d+**: The word order followed by a number, such as order 10442.
- **HTTP/1\.1" 5\d\d**: Server errors (status 500 to 599) in an access log.
- **took \d{4,} ms**: Requests that took 1,000 ms or more.
- **^2026-10-26 09:0**: Lines that start with a time between 09:00 and 09:09.
- **user=(42|97)\b**: Two specific user IDs, and not 420 or 971.

## Log levels and stack traces

The viewer recognises level words where loggers put them (FATAL, ERROR, WARN, INFO, DEBUG, TRACE and short forms such as ERR and WRN), tags like [warn] and level=info, numeric JSON levels used by Node.js loggers, and the single letters of Android logcat. An explicit level wins over the words in the message, so INFO retry failed counts as info, not error.

Indented lines under an error, such as Java stack frames starting with at or a Python traceback, take the level of the line above. That keeps a crash and its stack trace together when you filter to errors.

## The timeline and time filters

Timestamps are read in the common formats: ISO dates (2026-10-26 09:02:45 or 2026-10-26T09:02:45Z, with or without milliseconds and time zones), the Apache and Nginx access log format, syslog dates such as Oct 26 09:02:45, and Unix epoch times in JSON logs. The timeline splits the file's time span into bars, with errors in red and warnings in amber, so a spike stands out at a glance. Times are shown in UTC; lines without a time take the time of the line above.

## Grouping repeated messages

Logs repeat themselves. The repeated messages panel replaces the parts that change (numbers, IDs, UUIDs, IP addresses, emails, URLs and times) and counts lines that are then the same, so Payment failed for order 10442 and Payment failed for order 10583 count as one message seen twice. Press a message to jump to its first appearance. When filters are on, the counts cover only the lines you're looking at, which makes it easy to compare an incident window with a normal one.

## Working with JSON logs

Many services write one JSON object per line (JSON Lines). Their levels and times are read from fields such as level, severity, time and timestamp, and any JSON line can be expanded into a formatted view with the { } JSON button next to it.

## Tips

- **Bookmarks**: Click a line number to bookmark it, then tick Only bookmarks to collect the lines you'll paste into a bug report.
- **Hide the heartbeat**: Type health check or the name of a noisy job in the hide box instead of scrolling past it.
- **Go to a line**: Type a line number from an error message or a colleague's note and press Go.
- **Wrong letters?**: If accents or non-Latin text look broken, pick another encoding at the top, or fix the file with the encoding fixer.
- **Share less**: Download only the filtered lines rather than the whole log, so private data from other users stays out of tickets.

## Questions

### How big a log file can it open?

Up to 300 MB. Lines are shown 1,000 at a time, so even files with millions of lines stay fast to scroll.

### Which log formats does it understand?

Any text log. Levels and times are read from common formats: Java, Python, Node.js and .NET loggers, Android logcat, Apache and Nginx access logs, syslog and JSON Lines.

### Does it support regular expressions?

Yes, with case-sensitive and whole-word options. Invalid patterns are explained instead of failing silently.

### Can it show lines around a match?

Yes. In Only matching lines mode, choose 1 to 10 lines of context; gaps between groups are marked.

### Can I edit the log?

No. It's a viewer, which keeps the original safe; download the filtered lines to work on them elsewhere.

### Does it work with .gz logs?

Open compressed logs in the universal file viewer first, which unpacks them on your device, or unzip them and open the text file here.

### Is my file uploaded?

No. Files are opened and processed in your browser, on your device. Nothing is uploaded, stored or logged, so the tools are safe for private and work files.

## Related

- [Universal File Viewer](https://cromagnon.app/tools/universal-file-viewer)
- [Regex Tester](https://cromagnon.app/tools/regex-tester)
- [JSON Formatter](https://cromagnon.app/tools/json-formatter)
- [Text Diff](https://cromagnon.app/tools/text-diff)
- [Encoding Fixer](https://cromagnon.app/tools/encoding-fixer)
- [All tools](https://cromagnon.app/tools)
