Source Code Viewer

Source Code Viewer

Source Code Viewer

Enter a URL to fetch and view its HTML source code.

Ready to inspect

Enter a website URL above (e.g., example.com) to generate its browser-native source code handler.

Fetching source code, please wait...

Error fetching source:

Could not fetch the site. It may have anti-bot protection blocking proxies.

Direct Browser Protocol Mode

Unfortunately, we can't programmatically trigger Ctrl+U or use the view-source: protocol via HTML or JavaScript. Ctrl+U is a native browser shortcut that is only meant for users to manually trigger on their current tab, making the proxy approach the only way to create a custom web-based source code viewer!

Open Tab

Tip: Clicking 'Open Tab' launches the website. Once loaded, press Ctrl + U (or Cmd + Option + U on Mac) to view source code!

https://example.com
© 2026 Source Code Viewer