HTML Source Viewer
Display a page's HTML source with line numbers from its URL
Features
Display source with just a URL
Display page HTML with line numbers without modification
Check source code on smartphone
View source even on smartphone browsers that don't have a built-in source display feature
Summary of retrieved results also listed
Status, final URL, character encoding, character count, line count
Format, copy, and save
One-touch formatting and copying, with support for saving as .html files
How to use
Enter the URL you want to check
Enter the URL of the page you want to view the source in the input field (https:// can be omitted)
Retrieve with the check button
Click "Check" or press Enter to have the server retrieve the page and display the source
Check the summary and source
Check status, final URL, and character encoding. If it's hard to read, use "Format" to add indentation
Copy or save
Copy using the button at the top right of the source section, or download as an .html file

Use cases
Investigate reference site structure
Check headings, meta information, and the structure of CSS and JavaScript being loaded
Verify tracking tag output
Check whether measurement tags, OGP, and structured data are actually output in your site's HTML
Investigate the cause of character encoding issues
Check the character encoding and declaration of pages with encoding problems
Extract page links
Check and copy links in a list from the page
Basic knowledge
What is HTML source code?
HTML source code is text that describes a webpage's headings, body text, and image positions using tags like h1 (heading) and p (paragraph). The browser reads this to render the page.
- head element:The head element contains the page title (title), descriptions used in search results and social media (meta), and specifications for loading CSS and JavaScript.
- Character encoding declaration:Character encoding is declared using the charset attribute in a meta tag (e.g., charset="UTF-8"). If the declaration and actual encoding don't match, the page will display with garbled characters.
How to view page source in a browser
In Chrome or Edge on desktop, right-click on the page and select "View page source," or press Ctrl+U on Windows or Command+Option+U on Mac to display the source.
- On smartphone:Most smartphone browsers don't have a "View page source" menu, so using a web tool that retrieves source by entering a URL is convenient.
Difference between source and inspector HTML
"Page source" is the HTML originally returned by the server, while the HTML displayed in the browser's inspector (developer tools) is the state after JavaScript execution has modified it.
- Elements not displayed:Ads and lists added later by JavaScript are not included in the HTML returned by the server, so they won't be found when viewing the source.
Safety and privacy
Server-side processing
Input is processed on the server; only information necessary for the inquiry is sent.
Temporary processing only
For Retrieve page source, temporary processing occurs on the server, then data is discarded after results are returned.
Communications encrypted with HTTPS
All sent and received data is encrypted by TLS and cannot be read by third parties.
No transmission to third parties
Input content is not sent to external services such as ad networks or trackers.
Retrieve only the requested page URL
Retrieved source is displayed as text on the screen without executing scripts, and private URLs such as internal networks are not retrieved
Follow RAKKOTOOLS on Google Search
203 useful tools become easier to find from Google Search and AI Search!
- Found in search
- Also shown in AI Search
- Discover new tools
Updates
- update #376
New tool added to display HTML source from URL with line numbers
Featured Tools
RAKKOTOOLS is free to use!
Available free of charge for individuals and corporations, commercial and non-commercial use alike.No prior permission or usage application is required. Feel free to use it in various situations.

Use in streaming and videos
Use various tools such as lottery draws and raffles in live streams and videos.

Use in schools, work, and events
Can be used in various situations such as classes, team division, internal work, and events.

Introduction on Web, books, and SNS
Feel free to introduce it as a useful tool on web media, books, SNS, and other platforms.

Commercial use
Can be used for commercial purposes such as research, calculation, processing, and conversion in business and production.
If you mention it, I get motivated to create more tools!


If using in streaming and videos
Link to RAKKOTOOLS in the description, or Mention or display that you are using RAKKOTOOLS in the stream or video.
Credit example for the description
Usage guidelinesYou are free to use it for normal purposes. However, use for purposes that violate laws, infringe on third-party rights, impose significant load on the service, or otherwise interfere with service operation is prohibited.
We do not guarantee the accuracy or completeness of information and calculation results obtained from each tool.
This notice is a translation of the original Japanese text. If there is any discrepancy between the translation and the original, the Japanese original takes precedence.
