Back to blog

What Is SNI and Encrypted Client Hello (ECH)? (2026 Guide)

Every HTTPS connection used to reveal the site name in plain text through SNI. Encrypted Client Hello hides it. Here’s how ECH works, which browsers support it, what it can’t hide, and what our packet capture showed.

Author
ProxyHorizon Team
Published
November 30, 2026
13 min read
Expert-Verified
What Is SNI and Encrypted Client Hello (ECH)? (2026 Guide)

HTTPS encrypts the pages you load. But for most of the web's history, it has left one thing out in the open: the name of the site you're connecting to.

That name travels in a field called SNI, at the very start of every secure connection, readable by your Wi-Fi provider, your ISP, your employer's firewall or anyone else on the path. Encrypted Client Hello (ECH) is the fix. It hides the real site name inside an encrypted envelope.

This guide explains what SNI is, why it leaks, how ECH works, which browsers and services support it, and what it still can't hide. We tested it on November 24, 2026, by capturing real handshakes with and without ECH, so you'll see exactly what a network observer gets in each case.

TL;DR
  • SNI is the site name your browser sends in plain text at the start of every HTTPS connection, so networks can see where you go.
  • Encrypted Client Hello (ECH) hides that name inside an encrypted inner hello, using a key the site publishes in DNS.
  • In our capture, the real name vanished from the wire and only a shared public name was visible.
  • Chrome and Firefox use ECH by default, but it only works if the site supports it and your browser can fetch the key.
  • ECH doesn’t hide your IP or your traffic patterns, so it complements a VPN rather than replacing one.

What Is SNI (Server Name Indication)?

SNI is a field in the first message of a TLS connection that tells the server which website you want. It's defined in RFC 6066, and almost every HTTPS connection uses it.

It exists because of shared hosting. One IP address often serves hundreds or thousands of websites, especially behind a CDN. Before the server can pick the right certificate, it needs to know which site you're after, so your browser announces the name in its very first message, the ClientHello.

The problem is timing. The ClientHello is sent before any encryption is agreed, so the SNI goes out in plain text.

1Who Can See Your SNI

Anyone who can see your traffic can read the name of every site you connect to, even though the pages themselves are encrypted:

This is why your ISP can see which sites you visit even in incognito mode, as we explain in can your ISP see incognito browsing. They don't see the page, the path or your search terms. But the site name alone says a lot.

We Captured the Leak Ourselves

To show the difference, we recorded two TLS handshakes to the same test site, one normal and one with ECH, and read them back with Wireshark's command-line tool. Here's the result:

Text
$ go run hello.go tls-ech.dev plain
tls-ech.dev plain: handshake OK, ECH accepted = false
  SNI seen on the wire: tls-ech.dev

$ go run hello.go tls-ech.dev ech
tls-ech.dev ech: handshake OK, ECH accepted = true
  SNI seen on the wire: cloudflare-dns.com   (the DNS-over-HTTPS lookup)
  SNI seen on the wire: public.tls-ech.dev   (ECH extension present)

In the normal handshake, anyone on the network could read tls-ech.dev straight from the packet. With ECH, the visible name changed to public.tls-ech.dev, a shared "public name" that the site publishes for exactly this purpose. The real name was still there, but inside the encrypted part.

Notice the third line too. Our program looked up the site's ECH key using DNS over HTTPS, and that lookup had its own visible name: cloudflare-dns.com. An observer can tell you're using encrypted DNS, just not what you looked up.

You can run the same kind of check on your own machine with tshark, Wireshark's command-line version, while you browse:

Bash
sudo tshark -i any -Y 'tls.handshake.type == 1' \
  -T fields -e tls.handshake.extensions_server_name

Every line it prints is a site name your network can see.

Comparison of a normal TLS ClientHello where the site name is visible in plain text and an Encrypted Client Hello where only a shared public name is visible
Without ECH, the real site name is in the clear. With ECH, observers only see a shared public name.

1Why SNI Was Never Encrypted in the First Place

It's a chicken-and-egg problem. To encrypt anything, the browser and server first have to agree on keys. To pick the right certificate and keys, the server needs to know which site you want. So the site name has to come first, before any secret exists.

TLS 1.3, finished in 2018, encrypted much more of the handshake than older versions, including the server's certificate. But the ClientHello, and the SNI inside it, stayed readable. Solving that needed a way for the browser to get a server's key before connecting, and DNS became that channel.

What Is Encrypted Client Hello (ECH)?

Encrypted Client Hello is a TLS 1.3 extension that encrypts the sensitive parts of the ClientHello, including the real site name, using a public key the site publishes in DNS. The IETF published it as RFC 9849, a Proposed Standard, in March 2026, after several years as a draft.

ECH replaced an earlier design called ESNI (Encrypted SNI), which only hid the name. ECH encrypts the whole inner ClientHello, so other revealing details are protected as well.

1How ECH Works, Step by Step

  1. The site publishes an ECH key in DNS. It goes in a newer DNS record type called HTTPS, described in RFC 9848. The record includes a public key and a public name.
  2. Your browser fetches that record when it looks up the site's address.
  3. Your browser builds two ClientHellos. The inner one holds the real site name and is encrypted with the site's public key. The outer one carries only the public name, such as cloudflare-ech.com, and is sent in the clear.
  4. The server decrypts the inner hello with its private key and continues the connection for the real site.
  5. If decryption fails, for example because the key changed, the server can send fresh keys and the browser retries securely.

This only works well when many sites share the same public name. That's why ECH fits CDNs so well. Cloudflare's ECH documentation says every ECH-enabled site on its network uses cloudflare-ech.com as the outer name, so observers can tell you're visiting "a website on Cloudflare" but not which one.

Flow diagram of how Encrypted Client Hello works: the site publishes a key in DNS, the browser fetches it, encrypts the inner hello, and the server decrypts it
ECH depends on DNS: no HTTPS record with a key, no encrypted hello.

2Try It in Code

Go's standard library has supported ECH on the client side since Go 1.23. This short program fetches the key from DNS and connects with it. We ran it with Go 1.27.3, and it printed ECH accepted: true:

Go
// Look up a site's ECH key in DNS, then connect with Encrypted Client Hello (Go 1.23+).
package main

import (
	"crypto/tls"
	"encoding/base64"
	"encoding/json"
	"fmt"
	"net/http"
	"regexp"
)

func main() {
	host := "tls-ech.dev"

	// 1. Ask a DNS-over-HTTPS resolver for the site's HTTPS record.
	req, _ := http.NewRequest("GET", "https://cloudflare-dns.com/dns-query?type=HTTPS&name="+host, nil)
	req.Header.Set("Accept", "application/dns-json")
	resp, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	var dns struct{ Answer []struct{ Data string } }
	json.NewDecoder(resp.Body).Decode(&dns)

	// 2. Pull the base64 "ech=" value out of the record.
	var echConfig []byte
	for _, a := range dns.Answer {
		if m := regexp.MustCompile(`ech=([A-Za-z0-9+/=]+)`).FindStringSubmatch(a.Data); m != nil {
			echConfig, _ = base64.StdEncoding.DecodeString(m[1])
		}
	}

	// 3. Connect. The real name now travels inside the encrypted inner hello.
	conn, err := tls.Dial("tcp", host+":443", &tls.Config{
		ServerName:                     host,
		EncryptedClientHelloConfigList: echConfig,
	})
	if err != nil {
		panic(err)
	}
	defer conn.Close()
	fmt.Println("ECH accepted:", conn.ConnectionState().ECHAccepted)
}

It worked against two independent test sites, tls-ech.dev and defo.ie. Two Cloudflare-hosted test addresses rejected the attempt from our server's network, and without fresh keys to retry with, Go stopped there. That's a useful reminder that ECH can fail in practice, and well-behaved clients have to handle it.

Which Browsers and Services Support ECH?

The major desktop browsers support ECH today, but it only kicks in when the site publishes an ECH key and your browser can fetch it. Here's where support stood in November 2026, based on official sources:

Browser or serviceECH statusNotes
Google ChromeOn by default since version 117Admins can turn it off with the EncryptedClientHelloEnabled policy
Mozilla FirefoxOn by default since version 119Since 129 it can use the system DNS resolver on Windows 11, Linux and Android 10+; macOS still needs Firefox's DNS over HTTPS
Other Chromium browsersVariesUsually follow Chrome, but check with a test page
CloudflareOn by default for Free plan sitesOther plans can switch it on or off in the dashboard
Go (crypto/tls)Client support since Go 1.23You supply the ECH key yourself, as in our example

Mozilla notes that Firefox doesn't use ECH when family safety software is detected or the browser is configured for an enterprise environment.

1Why Your Browser Might Not Be Using It

ECH has a quiet dependency on DNS. Your browser needs the site's HTTPS record, and not every DNS resolver passes those along.

We saw this ourselves. On our test server, both curl and headless Chrome 156 reported sni=plaintext on Cloudflare's trace page. The server's DNS resolver returned no HTTPS records at all, while a DNS over HTTPS query for the same site returned an ECH key straight away. No key, no ECH.

Mozilla recommends turning on DNS over HTTPS for the full benefit anyway. If your DNS lookups go out unencrypted, anyone watching sees the site name in the DNS query, and ECH has nothing left to hide. Our guide to DNS leaks explains how to check.

2How to Check If ECH Works for You

  • Visit tls-ech.dev. It tells you whether your browser used ECH for that connection.
  • Open Cloudflare's trace page at crypto.cloudflare.com/cdn-cgi/trace and look for sni=encrypted rather than sni=plaintext.
  • If both say no, turn on secure DNS in your browser settings and try again.

What ECH Doesn't Hide

ECH hides the site name in the handshake, but a network observer still has other clues. It's a big step, not complete invisibility:

  • The IP address. If a site has its own dedicated IP, the address alone gives it away. ECH helps most for sites behind large shared CDNs.
  • DNS queries, unless you use encrypted DNS.
  • The public name, such as cloudflare-ech.com, which reveals the hosting provider.
  • Traffic patterns. Timing and the size of responses can still hint at what you're loading.
  • Your TLS fingerprint. The outer ClientHello still shows which software you're using. Our guide to TLS fingerprinting covers how sites use this.
  • Everything the website itself sees, including your IP, cookies and browser fingerprint. ECH protects you from the network, not from the site.

ECH vs a VPN

ECH hides which site you visit from your local network. A VPN hides all of your traffic, including the IP addresses you connect to, from that network. They solve overlapping problems in different ways.

QuestionECH aloneVPN
Can your ISP see the site name?No, if the site supports ECH and DNS is encryptedNo
Can your ISP see the server's IP?YesNo, only the VPN server's IP
Does the website see your real IP?YesNo, it sees the VPN's IP
Who else can see the site name?The site's host, such as the CDNThe VPN provider, unless ECH is also used
Cost and setupFree and automatic in modern browsersUsually a paid app

The two also work together. Mozilla points out that ECH can protect the names of the sites you visit from your VPN provider, while the VPN hides your IP address from the sites. Our VPN directory compares providers if you want both.

Comparison of what a network observer can see with Encrypted Client Hello alone versus with a VPN, including site name, server IP and your real IP
ECH and a VPN cover different gaps. Used together, they hide the most.

ECH, Firewalls and Censorship

Because so many filters rely on reading SNI, ECH has a side effect: it breaks them. That's good news for privacy, and a headache for anyone who depends on SNI-based filtering.

1Corporate and School Networks

Many firewalls, parental controls and web filters block or log sites by reading the SNI. With ECH, they only see the shared public name. That's why Chrome offers an admin policy to turn ECH off and why Firefox skips it in managed environments. If you run such a network, check your filter vendor's guidance on ECH.

2Censorship

Censors have noticed too. Since November 5, 2024, networks in Russia have dropped TLS connections that carry both an ECH extension and the outer name cloudflare-ech.com, according to researchers tracking the blocking. Russia's regulator publicly called on site owners to disable ECH or leave Cloudflare.

A 2025 study from Paderborn University found the Russian blocking hit only connections to Cloudflare's IP ranges. ECH to sites with other public names, such as tls-ech.dev, still went through. The lesson: one well-known public name shared by millions of sites is great for blending in, and also easy to block all at once.

If you need to get around censorship rather than just add privacy, tools designed for that job work better. Our guide to VPN obfuscation covers how they disguise traffic.

Should Website Owners Turn On ECH?

For most sites behind a large CDN, ECH is a low-effort privacy win for visitors. On Cloudflare's Free plan it's already on, and paid plans can switch it on in the dashboard, according to Cloudflare's docs.

A few things are worth weighing first:

  • Your audience's networks. If many visitors sit behind corporate filters or in countries that block ECH, test carefully. In Russia, Cloudflare-hosted sites with ECH became unreachable on many networks in late 2024.
  • Your own monitoring. Tools on your network that rely on reading SNI will see less once ECH is on.
  • Self-hosting is harder. Running ECH on your own server needs a TLS library and web server that support it, plus a way to publish and rotate keys in DNS. Most sites get ECH through a CDN instead.
  • The privacy benefit depends on the crowd. ECH hides your site among others that share the same public name. A small server with one site and its own IP gains little, because the IP still points to you.

For a broader look at what encryption protects in transit, see our explainer on VPN encryption, and for what happens once you reach a site, how websites track you online.

What ECH Means for Proxy and Scraping Users

If you use proxies, ECH changes what the proxy and the networks around it can see, but not much else. A few practical points:

  • A plain HTTP CONNECT or SOCKS5 proxy still learns the destination, because your client tells it the hostname or IP to connect to. ECH only protects the name inside the TLS handshake.
  • Networks between you and the proxy see only a connection to the proxy, so ECH matters less on that stretch.
  • Scraping tools rarely use ECH. Libraries like Python requests and most curl builds send plain SNI. If a site checks for ECH, that's another way a script can look different from a real Chrome user, as our guide on how anti-bot systems detect bots explains.

Frequently Asked Questions

Final Thoughts

SNI was a quiet gap in HTTPS for years. Every secure connection announced the site's name in plain text, and anyone on the network could read it.

Encrypted Client Hello closes most of that gap. Our capture showed it plainly: the real name disappeared from the wire, replaced by a shared public name. It's now an IETF standard, on by default in Chrome and Firefox, and enabled for millions of Cloudflare sites.

It isn't a privacy cure-all. It needs the site to publish a key, it works best with encrypted DNS, and it leaves your IP address and traffic patterns visible. But turning on secure DNS in your browser costs nothing, and it lets ECH do its job.