Text File Viewer
Open a text file in your browser: plain view, numbered lines, or line/word/character counts. The file is read locally and never uploaded.
What this text file viewer does
The page reads the chosen file as strict UTF-8 and shows it below: the text itself, the same text with line numbers, or its line, word and character counts. A file with a zero byte is refused as binary rather than shown as mojibake, and a file that is not valid UTF-8 is refused with the position named, because showing replacement characters as if they were the content would answer a different question.
How to use it
Text File Viewer: choose a text file from the file picker and press Run, after setting View (default "plain") to get the file contents below.
Why it runs in your browser
The file is read with the browser's File API and processed on this page with JavaScript, so it works offline after the page loads and the bytes are never posted to a server.
The page reads the chosen file as strict UTF-8 and shows it below: the text itself, the same text with line numbers, or its line, word and character counts. A file with a zero byte is refused as binary rather than shown as mojibake, and a file that is not valid UTF-8 is refused with the position named, because showing replacement characters as if they were the content would answer a different question.
Open a text file in your browser: plain view, numbered lines, or line/word/character counts. The file is read locally and never uploaded.
How to use it
Text File Viewer: choose a text file from the file picker and press Run, after setting View (default "plain") to get the file contents below.
Why it runs in your browser
The file is read with the browser's File API and processed on this page with JavaScript, so it works offline after the page loads and the bytes are never posted to a server.
What to Expect
Best for
- Converting text file to file contents when the data is already on screen.
What this tool keeps
- The file is read with the browser's File API and processed on this page with JavaScript, so it works offline after the page loads and the bytes are never posted to a server.
Frequently asked questions
How do I use the text file viewer?
Text File Viewer: choose a text file from the file picker and press Run, after setting View (default "plain") to get the file contents below.
Is my input uploaded?
No. The file is read with the browser's File API and processed on this page; the bytes are never posted to a server.
Is there a size limit?
There is no fixed size cap on this page; the browser's available memory is the practical limit.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.