View Source Code from Any Website
Enter any URL to view its HTML source with syntax highlighting. Fast, clean, and free — built for developers, students, and the curious.
Or try an example
Everything you need to inspect a page
A focused tool that does one thing well: show you the real HTML behind any URL.
Full HTML, syntax-highlighted
See the exact HTML the server returned, colour-coded and line-numbered so it's easy to scan and search.
Streams as it loads
Source appears progressively via server-sent events — no waiting for the whole page before you can start reading.
Raw or formatted
Toggle between the original bytes and a beautified, indented view of the HTML, CSS, and JavaScript.
Copy or download
Grab the whole source to your clipboard, or save it as a .html or .txt file for offline analysis.
Works on mobile
No desktop-only "View Source" needed. Paste a link on your phone, or share a page straight to the app.
Private by design
Fetching happens on the server. No account, no tracking of the URLs you inspect, no storage of results.
How it works
From a URL to readable source code in three steps.
Paste a URL
Drop in any website address — with or without https://. We'll normalise it for you.
We fetch the source
Our server requests the page and streams back the raw HTML response as it arrives.
Read, format, save
Browse the highlighted code, switch to a formatted view, then copy or download it.
Quick access methods
Reach ViewSource.net faster from your phone or your browser toolbar.
Share to ViewSource
On iOS and Android, install ViewSource.net to your home screen, then use your browser's Share menu to send any page here for instant source viewing.
- Install ViewSource.net (Add to Home Screen)
- Open any webpage in your browser
- Tap Share and choose “ViewSource.net”
Bookmarklet
Add this bookmarklet to your bookmarks bar to view the source of the page you're on with one click.
Frequently asked questions
What does “view source” mean?+
Viewing source shows the raw HTML a website's server sent to your browser — the markup, inline styles, scripts, and metadata behind the page you see. It's the same information your browser already received, presented in a readable form.
How do I view the HTML source code of a website?+
Paste the website's URL into the box above and press View Source. ViewSource.net fetches the page and displays its full HTML with syntax highlighting, line numbers, and copy/download options — no browser extension required.
Can I view page source on an iPhone or Android?+
Yes. Mobile browsers hide the desktop “View Source” option, but ViewSource.net works in any mobile browser — just paste a link. You can also install it as an app and share pages straight to it from your browser's share menu.
Is ViewSource.net free?+
Yes, it's completely free to use with no account required.
Does it show JavaScript-rendered content?+
It shows the original HTML the server returns, before any JavaScript runs. For sites built with frameworks like React or Vue, that initial HTML can be minimal — the visible content is built in the browser afterwards.
Is it private and safe?+
Fetching happens on our server over a secure connection, and we don't require an account or store the source we return. Only public http:// and https:// pages can be fetched.