---
title: "What is the difference between HTTP and HTTPS and how does TLS work?"  
description: "What is the difference between HTTP and HTTPS and how does TLS work?"  
author: "Davide Romano"  
published: 2026-11-14  
updated: 2026-11-14  
canonical: https://www.mindstick.com/forum/163028/what-is-the-difference-between-http-and-https-and-how-does-tls-work  
category: "Web and API Design"  
tags: ["https", "TLS", "SSL certificate", "web security", "encryption"]  
reading_time: 1 minute  

---

# What is the difference between HTTP and HTTPS and how does TLS work?

I know the padlock means HTTPS, but what is actually happening behind it?

## Replies

### Reply by Alessandro Bianchi

HTTP sends data as plain text, so anyone on the network path (public Wi-Fi, a router) could read or change it. **HTTPS** is HTTP inside a **TLS** connection, which gives three things:

- **Encryption**: others cannot read the traffic.
- **Integrity**: they cannot change it unnoticed.
- **Authentication**: you know you are really talking to that website.

In simple terms, the TLS handshake works like this: the browser says which TLS versions it supports, the server replies with its certificate, the browser checks that a trusted certificate authority signed it and that it matches the domain, and both sides agree on a shared secret key. After that, all data is encrypted with that key.

Today HTTPS is the standard for every site. Browsers warn about plain HTTP, search engines prefer HTTPS, and free certificates are available (for example Let's Encrypt). Redirect HTTP to HTTPS and consider adding an HSTS header.


---

Original Source: https://www.mindstick.com/forum/163028/what-is-the-difference-between-http-and-https-and-how-does-tls-work

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
