Code Viewer
File ViewersView source code files with automatic language detection and syntax highlighting. No upload, works with 100+ languages.
Drop a file here, or click to choose
Accepts .js, .ts, .tsx, .jsx, .py, .rb, .go, .rs, .java, .c, .cpp, .cs, .php, .css, .yml, .yaml, .sh, .sql
Rendered with Shiki. Nothing about this file is ever sent to a server — open your browser's Network tab while using this viewer and you'll see no request carrying your file's contents.
What you can do with this tool
- Automatic language detection from file extension
- Line numbers and line-highlighting on click
- Light/dark theme matching the site theme
- Copy full file or selected lines
- Handles large files without freezing the page
Frequently asked questions
- Which languages are supported?
- 100+ languages including JavaScript, TypeScript, Python, Go, Rust, Java, C/C++, PHP, CSS, YAML, and more. HTML and Markdown files open in their own dedicated rendered viewers instead of here.
- Can I edit the code here?
- This is a read-only viewer. For editing, open the file in your usual editor.
- Is my source code uploaded?
- No — highlighting runs fully client-side via a WebAssembly build of Shiki.
- Does it detect the language automatically?
- Yes, based on the file extension, with a manual override if detection is wrong.
- Can I view minified or very long files?
- Yes, though extremely long single lines may scroll horizontally rather than wrap.
What would you like to do next?
JSON Viewer
View and explore JSON files as an interactive collapsible tree or formatted raw text. No upload, no account.
XML Viewer
View and explore XML files as a collapsible tree or raw text. No upload, no account.
Text Viewer
View plain text (.txt) files online with line numbers and easy copying. No upload, no account.
Markdown Viewer
View and render Markdown (.md) files as formatted HTML, with a raw source view. No upload, no account.