Text File Viewer

Upload any plain-text file — .txt, .log, .csv, .json, .md, .yaml, .env, and more — to view its contents in the browser with line numbers and optional line wrap. Shows total line count, character count, and file size. Useful for inspecting files quickly without opening a code editor or terminal.

All processing happens in your browser. No data is sent to any server.

Frequently Asked Questions

What file types does the viewer support?
The tool accepts .txt, .md, .csv, .log, .json, .xml, .yaml, .yml, .html, .css, .js, and .ts files. Any plain-text format can be viewed.
Is there a file size limit?
There is no strict file size limit, but the viewer will only display up to 50,000 lines. If your file exceeds that, a warning is shown and the remaining lines are omitted from the display.
What do the stats at the top show?
The stats bar shows the total line count, word count, and character count for the entire file (not just the visible portion).
Does line wrap affect the line numbers?
No. Line numbers always correspond to actual newline-separated lines in the file. Enabling line wrap only changes how long lines are displayed visually; it does not change the numbering.

Related Tools