No upload, 100% local, no account

Text & code viewer

Open text files your phone or OS refuses to display, Markdown, JSON, HTML, CSV, XML, YAML and more. Everything stays local.

How Text / code viewer works

Text Viewer opens text and source-code files directly in a browser tab: plain text (.txt), logs (.log), Markdown (.md), HTML, JSON, CSV and TSV, XML, YAML, plus dozens of code extensions such as .py, .js, .sql, .toml or .conf. Drop a file and read it immediately, with no account, no installed editor and no upload: the file is read locally by the browser's File API and never leaves your device, so it also works offline once the page has loaded.

Four formats get a rendered view on top of the raw text. Markdown is converted to a formatted page and sanitized before display, HTML files are previewed in a sandboxed frame with scripts disabled, JSON is pretty-printed with consistent indentation, and CSV or TSV opens as a table with the delimiter detected automatically. Everything else, including code files, is shown as clean read-only text with line and character counts. Files up to 10 MB are supported, which covers most logs, exports and configuration files that a phone's notepad app chokes on.

How to use Text / code viewer, step by step

  1. Drop a text or code file onto the drop zone, or tap it to pick one from your device.
  2. The viewer detects the format from the file extension and shows the content with line and character counts.
  3. For Markdown, HTML, JSON and CSV, switch between the raw text and the rendered view (formatted page, sandboxed preview, pretty-printed JSON or table).
  4. Use the copy button to put the whole content on your clipboard, or drop another file to replace the view.

Common use cases

  • Opening a .log file that is too awkward for a phone's notepad app, straight in the browser.
  • Reading a README.md or another Markdown file as a formatted page without installing an editor.
  • Checking the columns of a CSV export received by email before forwarding it, on a phone or tablet.
  • Inspecting a JSON API response or a configuration file with readable indentation when no code editor is at hand.

Frequently asked questions

Does my file get uploaded when I open it in this viewer?

No. The file is read by the browser's File API on your own device and its contents are rendered directly in the page. Nothing is transmitted to Sunasty or any third party. Your file stays on your device throughout.

How do I open a text file in my browser without installing anything?

Drop the file on this page, or tap the drop zone to pick it from your device. The browser reads it locally with the File API and displays the content in the tab. Nothing is installed and nothing is sent to a server, so it also works offline once the page is loaded.

Which formats get a rendered view instead of raw text?

Four: Markdown is rendered as a formatted page (sanitized first), HTML files are previewed in a sandboxed frame with scripts disabled, JSON is pretty-printed, and CSV or TSV is displayed as a table with the delimiter detected automatically. All other text and code files, such as .py, .js, .sql, .yaml or .conf, are shown as plain read-only text; there is no syntax coloring. Note the CSV table uses a simple split, so quoted fields that contain commas are not merged into one cell.

Is there a file size limit?

Yes, 10 MB. That covers the vast majority of logs, exports and configuration files. Beyond that limit the viewer refuses the file instead of freezing the tab; split very large logs before opening them.

Can I edit the file content in this viewer?

The viewer is read-only. It is designed for inspection, not editing. If you need to modify the file, copy the content, paste it into a text editor app, make your changes, and save from there.

Can I open binary files such as images or PDFs in this viewer?

No. The viewer is designed for text and source-code files. Binary files will display garbled content because they are not valid UTF-8 text. Use the appropriate tool on this site for images (image comparison, EXIF reader) or PDFs.