Code & Text Viewer
Preview source code and text files (JSON, YAML, Python, TypeScript, Markdown) with syntax highlighting. Local rendering.
About Code & Text Viewer
Preview source code and plain-text files with syntax highlighting. Supports dozens of languages including JSON, YAML, XML, Python, JavaScript, TypeScript, Go, Rust, Markdown, and SQL.
How to Use
Upload or drag in a code/text file. The viewer detects the language from the file extension and renders highlighted, line-numbered source. Use the toolbar to copy or download.
Privacy
All parsing and highlighting happens entirely in your browser. Your file is never uploaded to any server.
▶Which languages are supported?
Most popular languages are highlighted via highlight.js — JSON, YAML, XML, TOML, Python, JS/TS, Go, Rust, Java, C/C++, C#, PHP, Ruby, SQL, CSS, HTML, Markdown, and many more.
▶Can I edit the code here?
No. This viewer is read-only preview. For editing, use the dedicated code formatters or editors.
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee