Code Viewer
Preview .js, .mjs, .cjs, .jsx, .ts, .tsx, .py, .rb, .php, .java, .c, .h, .cpp, .hpp, .cs, .go, .rs, .swift, .kt, .lua, .pl, .r, .dart, .sh, .bash, .zsh, .ps1, .sql, .html, .htm, .css, .scss, .less, .vue, .svelte, .toml, .ini, .conf, .gradle files right in your browser. Nothing is uploaded.
Drop a Code file here
or browse files — nothing is uploaded, everything stays on your device.
Got a folder or .zip? Drop the whole thing — 3D models load with their textures, and photo or PDF sets open as a gallery you can flip through.
Supported file types
Images
.jpg, .jpeg, .png, .webp, .gif, .bmp, .avif, .heic, .heif, .svg
Data
Text & code
.txt, .log, .json, .xml, .yaml, .yml, .js, .mjs, .cjs, .jsx, .ts, .tsx, .py, .rb, .php, .java, .c, .h, .cpp, .hpp, .cs, .go, .rs, .swift, .kt, .lua, .pl, .r, .dart, .sh, .bash, .zsh, .ps1, .sql, .html, .htm, .css, .scss, .less, .vue, .svelte, .toml, .ini, .conf, .gradle
Markdown
About Code Viewer
Sometimes you just need to glance at a source file without cloning a repo or opening an IDE — on a shared computer, a phone, or a machine where you’d rather not install anything. This viewer covers common source extensions with line numbers, so you can jump straight to the line a stack trace pointed at.
Fuel the Developer
Tap to support the project.
Did you know?
TechThe Manchester Baby, the first stored-program computer, ran its debut program for 52 minutes in 1948 just to find the highest proper factor of the number 262,144.
Pull the text out of a PDF to copy or save with our PDF to Text tool →