Code Viewer — Syntax-Highlighted Source File Viewer, Free
Open any source code file and read it with automatic language detection and syntax highlighting — no IDE, no upload.
1. Choose or drop a file
2. View instantly
3. Download when done
What this viewer does
- 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
How it's rendered
Shiki. The same highlighter that powers VS Code, running entirely in-browser via WASM.
Nothing about this file is ever sent to a server — open your browser's DevTools Network tab while using this viewer and you'll see no request carrying your file's contents.
100% Private
Files never leave your device. There is no server that ever receives your file's contents.
No Uploads
Every format is decoded and rendered locally via WebAssembly or JavaScript. Open your browser's Network tab and confirm nothing is sent.
No Storage
Nothing is written to a server or database. Memory clears the moment you close or reload the tab.
GDPR-friendly by design
There's no file data collection to comply with in the first place — no account, no tracking of file contents, no analytics on what you view.
Code viewer — FAQ
Which languages are supported?
100+ languages including JavaScript, TypeScript, Python, Go, Rust, Java, C/C++, PHP, HTML/CSS, YAML, and more.
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.