Open Code, JSON and Text Files Online
Open a JSON export, a config file, a log or a script on any device, with line numbers and colours, and long one-line JSON laid out for reading.
How to Open a Code File
-
Open Glance
Open Glance in your browser, or install the free Windows app.
-
Choose your Code file
Tap Choose a File, or drag the Code file onto the page. It stays on your device.
-
View it
Scroll the file with line numbers, zoom in, and copy what you need.
What You Can Do With Code Files
90+ File Types
From JSON, XML and YAML to Python, C#, Rust, SQL and shell scripts.
Readable JSON
JSON saved on one long line is laid out with indents.
Any Encoding
UTF-8, UTF-16 and older Windows text files show the right characters.
Your Code Files Never Leave Your Device
Most online viewers upload your file to their server. Glance reads it right in your browser, so nothing is sent anywhere, and it keeps working offline.
Free and Open Source
No account, no adverts, no watermark. Read every line of the code on GitHub.
View the SourceQuestions About Code Files
Is Glance's Code viewer free?
Yes. Glance is free and open source under the Apache 2.0 licence, with no account, adverts or watermarks.
Are my Code files uploaded anywhere?
No. Glance opens files on your own device, in your browser or in the Windows app. Nothing is sent to a server, so it is safe for private documents.
Does it work offline?
Yes. Install Glance from your browser (Add to Home Screen on a phone) and it opens files with no internet connection.
Can I open Code files on iPhone, Android or Mac?
Yes. The browser version works in Safari, Chrome, Edge and Firefox on phones, tablets and computers. The Windows app adds Explorer thumbnails and opening files with a double-click.
