How to Upload an HTML Website to Hostinger & Make It Live
From buying hosting to seeing your site online — a complete walkthrough covering File Manager, FTP, and ZIP upload methods.
This guide walks you through every step — from setting up your Hostinger account and configuring your domain, to uploading your HTML files using the built-in File Manager or an FTP client. By the end, your website will be publicly accessible on the internet.
Prerequisites & What You Need
Before uploading, make sure you have everything in order. Rushing this step leads to 90% of beginner frustrations.
| Item | Details | Where to Get |
|---|---|---|
| Hostinger Account | Any shared hosting plan (Premium or Business recommended) | hostinger.com |
| Domain Name | Purchased separately or included with your plan | Hostinger or any registrar |
| Your HTML Files | All HTML, CSS, JS, images, and assets zipped or in a folder | Your local computer |
| FTP Client (optional) | FileZilla is free and works on Windows, Mac, Linux | filezilla-project.org |
New to Hostinger? When signing up, choose a plan that includes a free domain for the first year. This saves you the domain connection step and gets your site live faster. The "Premium" shared hosting plan is ideal for static HTML sites.
Prepare Your HTML Files Correctly
The single most important rule: your main homepage file must be named index.html. When someone visits your domain, the server looks for index.html (or index.php) first. Any other filename and visitors will see a blank directory or error page.
Correct File Structure
# ✅ Correct structure — index.html at root level my-website/ ├── index.html ← Homepage (required) ├── about.html ├── contact.html ├── css/ │ └── style.css ├── js/ │ └── script.js └── images/ ├── logo.png └── hero.jpg # ❌ Wrong — index.html buried in a subfolder my-website/ └── src/ └── index.html ← Visitors won't find this
Make sure all your file paths in HTML are relative (e.g., css/style.css, not C:/Users/yourname/my-website/css/style.css). Absolute local paths will break on the server.
Check your links! Open your HTML file locally in a browser before uploading. Verify all images load, CSS is applied, and navigation links work. It's much faster to fix issues on your computer than after uploading.
Access the Hostinger hPanel
Hostinger uses its own custom control panel called hPanel instead of the traditional cPanel. It's clean, fast, and beginner-friendly.
Go to hostinger.com and click Login in the top right. Enter your email and password.
After logging in, click Hosting in the main navigation bar to see your hosting plans.
Find the hosting plan you want to use and click the Manage button. This opens hPanel for that plan.
The hPanel dashboard shows all your tools: File Manager, FTP Accounts, Databases, Domains, and more. All the upload methods below start from here.
Method 1 — File Manager Upload
The File Manager is the easiest way to upload files — no extra software needed, works entirely in your browser. Best for sites with fewer than 20–30 files.
In hPanel, scroll to the Files section and click File Manager. A new browser tab opens with a file browser.
public_html folder
In the left sidebar, click on public_html. This is the web root — all files here are publicly accessible on the internet. Do not upload files outside this folder if you want them visible.
Hostinger may place a default index.html placeholder in public_html. Select it and click Delete so your own index.html becomes the homepage.
Look for an Upload button at the top of the File Manager. A dialog appears for selecting files from your computer.
Navigate to your website folder on your computer. Select index.html and all other HTML/CSS/JS files. You can multi-select with Ctrl+Click. Note: you must upload folders separately (css/, images/ etc.) — see the ZIP method for uploading everything at once.
For folders like css/, js/, and images/: click New Folder in File Manager to create the folder, open it, then upload the files inside. Maintain the same folder structure as your local project.
After uploading, confirm index.html is directly inside public_html (not in a subfolder). Your file tree should mirror your local project structure.
File Manager tip: You can also drag and drop files directly into the File Manager window in modern browsers (Chrome, Edge). This is even faster than using the Upload button for small numbers of files.
Method 2 — ZIP File Upload & Extract
If your website has many files and folders, uploading one by one is painfully slow. The ZIP method lets you upload everything in a single file, then extract it on the server. This is ideal for medium-to-large static sites.
Step 1 — Create a ZIP of your website
# Windows Select all files inside your website folder (Ctrl+A) Right-click → Send to → Compressed (zipped) folder # Name it: website.zip # Mac Select all files → Right-click → Compress X items # This creates Archive.zip # Linux / Terminal cd /path/to/my-website zip -r website.zip . # The . includes all files in current directory
ZIP the contents, not the folder. Make sure when you unzip, index.html is at the top level — not inside a subfolder like my-website/index.html. Open the ZIP on your computer first to verify the structure before uploading.
public_html
In hPanel, go to File Manager and click into the public_html directory.
Click Upload and select your website.zip. Wait for the upload to complete — progress is shown in the upload dialog.
Once uploaded, right-click on website.zip in the File Manager and select Extract. In the dialog, confirm the destination is public_html (not a subfolder).
After extraction, right-click website.zip and click Delete. No need to keep it on the server — it just takes up space.
Verify that index.html appears directly inside public_html. If it's inside a subfolder (e.g., public_html/my-website/index.html), move the files up one level.
Method 3 — FTP Upload with FileZilla
FTP (File Transfer Protocol) gives you full control over your file uploads. It's faster for large sites, supports drag-and-drop folder transfers, and is the preferred method for developers who update their sites frequently.
Get Your FTP Credentials
In hPanel, find the Files section and click FTP Accounts.
You'll see a default FTP account. Note the FTP Username and FTP Hostname (looks like files.000webhost.com or your domain). Set a password if needed.
Connect FileZilla to Hostinger
FileZilla → File → Site Manager → New Site Protocol: FTP - File Transfer Protocol Host: ftp.yourdomain.com (from hPanel FTP Accounts) Port: 21 (default FTP port) Logon Type: Normal User: your_ftp_username (from hPanel) Password: your_ftp_password (from hPanel) # Click Connect → Accept the certificate if prompted
public_html on the right panel
FileZilla shows your local files on the left and the server files on the right. Double-click public_html on the right side.
On the left panel, navigate to your website folder. Select all files and folders, then drag them to the public_html panel on the right. FileZilla queues and transfers everything.
Watch the transfer queue at the bottom. Green checkmarks mean successful uploads. Red entries indicate errors — usually permission issues or filename conflicts.
Use SFTP for security. In FileZilla's Site Manager, switch Protocol to SFTP – SSH File Transfer Protocol and use Port 22. Hostinger supports SFTP and it encrypts your file transfers, unlike plain FTP.
Connect Your Domain to Hostinger
If you purchased your domain through Hostinger, it's likely already connected to your hosting. If you bought it from another registrar (GoDaddy, Namecheap, Google Domains, etc.), you'll need to point its DNS nameservers to Hostinger.
Option A — Domain Registered with Hostinger
Go to hPanel → Domains. If your domain is listed and shows "Active," it's already connected to your hosting. Skip to Section 8.
Option B — Domain from Another Registrar
In hPanel, go to Hosting → Manage → Details. Find the Nameservers section. They typically look like ns1.dns-parking.com and ns2.dns-parking.com.
Log into the registrar where you bought your domain (GoDaddy, Namecheap, etc.).
Look for DNS Management, Nameservers, or Name Server Settings in your domain's control panel.
Select Custom Nameservers and enter Hostinger's nameserver addresses. Save changes.
DNS changes take 15 minutes to 48 hours to propagate worldwide. During this time, your site may be accessible on some networks but not others. This is normal.
Check propagation status at dnschecker.org — enter your domain name and see which regions have picked up the DNS change. Green checkmarks mean those locations can reach your site.
Test Your Live Website & Troubleshoot
Once DNS has propagated, open your domain in a browser. Here's a checklist to verify everything is working correctly.
- Homepage loads at
yourdomain.com(not a directory listing or error page) - All images display correctly (no broken image icons)
- CSS styling is applied (page looks like your local version)
- Navigation links work and go to the correct pages
- JavaScript features behave as expected
- Site loads over HTTPS (check for padlock icon in browser)
- Test on mobile using your phone's browser (not connected to WiFi)
Common Issues & Fixes
| Problem | Likely Cause | Fix |
|---|---|---|
| Blank page / Directory listing | index.html is missing or in wrong folder |
Ensure index.html is directly inside public_html |
| CSS / images not loading | File paths are wrong or case-sensitive mismatch | Check paths in HTML — servers are case-sensitive, unlike Windows |
| Site still shows old/default page | Browser cache or DNS not propagated | Hard refresh with Ctrl+Shift+R or try in Incognito mode |
| 403 Forbidden error | File permissions are wrong | In File Manager, right-click files → Permissions → set to 644, folders to 755 |
| No HTTPS / SSL warning | SSL certificate not activated | Go to hPanel → SSL → Enable free Let's Encrypt SSL |
Enable Free SSL (HTTPS)
Hostinger includes a free Let's Encrypt SSL certificate with all plans. You must activate it manually:
Find the Advanced section in hPanel and click SSL.
Choose your domain from the dropdown and click Install Free SSL. Hostinger will provision the Let's Encrypt certificate automatically.
Back in hPanel, look for Force HTTPS toggle and enable it. This ensures http:// visitors are automatically sent to https://.
🎉 Your website is live! Once you see your site loading at your domain with a padlock (HTTPS), you've successfully published your HTML website to the internet via Hostinger. Share the URL with the world!
Quick Reference — Which Method to Use?
| Your Situation | Best Method |
|---|---|
| Small site, 5–15 files, first-time uploader | ✅ File Manager (Method 1) |
| Site with many folders and assets | ✅ ZIP Upload (Method 2) |
| Developer updating the site often | ✅ FTP/SFTP with FileZilla (Method 3) |
| Images broken after upload | Check file path case-sensitivity |
| Domain not pointing to site yet | Check DNS nameservers or wait for propagation |
Publishing your first website is a milestone — and Hostinger makes it accessible even for complete beginners. Bookmark this guide and refer back whenever you need to update your site or troubleshoot an issue. Happy hosting!










Leave a Reply