How to Put an HTML File Online (the Easy Way)

You have an HTML file on your computer. It opens fine in your browser, but the address bar says file:///Users/you/index.html — nobody else can see it. This guide covers how to turn that file into a real website with a real URL.

What you actually need

A website is just files served by a computer that is always online. To publish an HTML file you need exactly three things:

  • Somewhere to store the file — a hosting service.
  • An address — a domain or subdomain people can type in.
  • HTTPS — browsers mark plain HTTP sites as "not secure".

You do not need a server of your own, a database, or a framework. For a static page, all of that is overkill.

Option 1: One-file hosting (fastest)

Services built for exactly this job let you upload a single index.html and get a live URL immediately. hdply is one of them: you sign up with an email, upload your file, and get an address like my-site.hdply.com. It is live the second the upload finishes, with HTTPS included, and you can edit the HTML in the browser afterwards. There is no build step — the file is served byte-for-byte as you wrote it.

This is the right choice when you have one page — a portfolio, a landing page, a demo, an invitation — and want it online in under a minute.

Option 2: Git-based platforms

GitHub Pages, Netlify and Vercel deploy your site from a Git repository. They are excellent for ongoing projects: push a commit and the site updates. The trade-off is setup — you need a Git repository, an account linked to it, and some configuration before the first deploy. If you don't already use Git, this is a lot of ceremony for one file.

Option 3: Cloud storage buckets

AWS S3, Google Cloud Storage and similar can serve static files. They are powerful and cheap at scale, but you'll be configuring bucket policies, CDN distributions and TLS certificates yourself. Reasonable for engineers who live in that ecosystem; heavy for a single page.

Step by step: file to URL in about a minute

  1. Create a free account at app.hdply.com/signup — email plus a verification code.
  2. Upload your index.html (or paste the code into the editor).
  3. Done — you get a URL that works immediately.

Need a change later? Open the built-in editor, tweak the HTML, hit save. The update is live instantly.

Common questions

Can my page use CSS and JavaScript? Yes — inline them in the HTML file or reference external URLs. A single self-contained file is the simplest to manage.

Do I need to buy a domain? No. A free subdomain works fine to start; you can always attach a custom domain later when the project grows.

From a file on your desktop to a live URL in under a minute.

Deploy your first page