← Back to blog

HTTP/2 vs HTTP/3: What Changes and When It Matters

November 19, 2026
HTTP/2 vs HTTP/3: What Changes and When It Matters

HTTP/2 and HTTP/3 send the same requests, methods, status codes and headers. The difference is the transport underneath. HTTP/2 runs over TCP, so one lost packet can stall every request on the connection. HTTP/3 runs over QUIC on UDP, so a lost packet only holds up the stream it belongs to. That gives HTTP/3 an edge on lossy and mobile networks, but only if UDP 443 is reachable and your server actually negotiates it. You have to verify that, because a site can look healthy while quietly staying on HTTP/2.

Pingfloat
Check Your Site’s Health
After changing protocols, use Pingfloat’s web tools to check website availability, verify SSL certificates, and troubleshoot network issues.
Visit

TL;DR

  • HTTP/2 = HTTP over TLS over TCP. HTTP/3 = HTTP over QUIC over UDP, with TLS 1.3 built into the transport.
  • The main gain is no cross-stream blocking when packets are lost, plus a shorter connection setup. It shows most on pages loading many resources over imperfect networks.
  • On a fast, clean network the two perform similarly, and a slow backend will outweigh the protocol choice.
  • To enable HTTP/3 in nginx you need 1.25.0 or newer built with --with-http_v3_module, a QUIC listener, an Alt-Svc header and UDP 443 open.
  • Always confirm the negotiated protocol. A 200 response does not prove HTTP/3 was used.

Table of Contents

What HTTP/2 and HTTP/3 have in common

Both are mappings of the same HTTP semantics, as RFC 9114 (the IETF standard that defines HTTP/3) describes it. HTTP/1.1 sends text and, with no multiplexing, often opens several parallel TCP connections, which hurts congestion control. HTTP/2 introduced binary framing and multiplexing, so many requests share one connection. HTTP/3 keeps that model, with a similar binary framing layer, and hands stream management to the transport.

So your application code, routes, cookies and headers do not change when you move to HTTP/3. What changes is how bytes get from server to browser.

The real difference: TCP vs QUIC

HTTP/2 uses TCP, which delivers one ordered byte stream. TCP does not know that HTTP/2 has several independent streams inside it. HTTP/3 uses QUIC, which MDN describes as a multiplexed transport on top of UDP. QUIC detects and retransmits lost packets separately for each stream, and it folds the TLS handshake into its own initial handshake, so fewer messages are needed to start.

HTTP/2HTTP/3
TransportTCPQUIC over UDP
TLSTLS 1.2 or newer, separate from TCPTLS 1.3 built into QUIC
ALPN tokenh2h3
Packet lossCan stall all streams on the connectionBlocks only the affected stream
Connection setupTCP handshake, then TLSCombined transport and TLS handshake
Connection migrationTied to IP and portConnection IDs allow migration
Typical portTCP 443UDP 443

The table follows a protocol comparison and RFC 9114. ALPN is the TLS extension a client and server use to agree which protocol they will speak.

Why packet loss matters

Imagine a page requesting /app.js and /account at once. On HTTP/2, a lost packet carrying part of /app.js makes TCP hold back everything after the gap, including /account bytes that already arrived, until the retransmission lands. RFC 9114 states that HTTP/2 multiplexing is invisible to TCP's loss recovery, so all active transactions stall. QUIC can hand /account to the application while /app.js waits.

There is a subtlety. APNIC's analysis notes that QUIC's stream-aware recovery only helps when several streams are active. A single large download gets little from it, while a page with dozens of assets gets more. HTTP/3 also is not free of all waiting: QPACK header decoding can still wait on dynamic table updates.

Faster setup, built-in encryption

A standard TLS-over-TCP handshake takes 3 round trips, or 1 with TLS 1.3, while QUIC performs the TLS 1.3 handshake in its first flight. The Chromium project lists 0 round trips in the common case for returning connections. QUIC also lives in user space and is encrypted, which avoids the problem that TCP is baked into operating-system kernels and middleboxes and is hard to change.

If latency and connection setup are your main concern, this write-up on connection establishment and latency is a good companion for thinking in round trips.

When HTTP/3 actually makes a site faster

The honest answer: it depends on the network and where your time goes.

  • Clean, low-latency network. A Carleton University thesis testing nginx and OpenLiteSpeed with Lighthouse found similar results for both protocols under no-delay conditions, while HTTP/3 pulled ahead on paint and layout metrics when conditions were unstable or lossy.
  • Mobile and lossy links. Packet loss is where per-stream recovery pays off, and connection migration helps when a phone moves between Wi-Fi and cellular.
  • Slow backends. A 2026 study of 951 hosting providers found no statistically significant TTFB difference for providers advertising HTTP/3. Server processing was the biggest latency slice, at a 184 ms median, about 46% of the measured budget.

The practical reading: turn on HTTP/3 for the users on bad networks, but fix slow application code and database queries first if your time to first byte is high. Protocol choice cannot compensate for a backend that takes 400 ms to answer.

Is HTTP/3 safe to roll out?

Support is broad. As of July 2026, more than 95% of major browsers in use support HTTP/3, and about 40% of the top 10 million websites serve it. Chromium-based browsers shipped it with Chrome 87, Firefox with version 88, and Safari enabled it for all users in September 2024.

Server support is just as mature. LiteSpeed enabled it by default from 6.0.2, Caddy from 2.6.0, HAProxy supports it from 2.6, and nginx from 1.25.0, per the same page.

The risk is the network, not the browser. RFC 9308 notes that 3% to 5% of networks block all UDP, so applications must be ready to fall back to TLS over TCP. Browsers do this automatically, which is why you keep HTTP/2 running next to HTTP/3 rather than replacing it. The same RFC warns that falling back to a TLS version older than 1.3 may give much weaker protection, so keep your TCP side on a modern TLS configuration. Our guide to TLS versions compared covers what to allow.

Is HTTP/3 safe to roll out?

Requirements before you enable HTTP/3

Work through this list first:

  1. A trusted certificate valid for every hostname clients request. LiteSpeed's documentation says self-signed certificates do not work for QUIC.
  2. TLS 1.3 or later, ALPN token h3, and SNI (the server name in the handshake) when a hostname identifies the server.
  3. UDP 443 open on every firewall and load balancer in the path. Open TCP 443 alone is not enough.
  4. A server that speaks QUIC version 1. Older server builds can fail on a QUIC version mismatch.
  5. HTTP/2 or HTTP/1.1 still available for clients that cannot complete a QUIC connection.

You can check the certificate and protocol side quickly with our SSL Checker, which needs no install or account.

Enabling HTTP/3 in nginx

The official ngx_http_v3_module documentation says the module arrived in 1.25.0, is not built by default, and needs the --with-http_v3_module build option plus OpenSSL 1.1.1 or newer. 0-RTT support needs OpenSSL 3.5.1 or newer, or BoringSSL, LibreSSL or QuicTLS.

First check your build:

nginx -V 2>&1 | grep -- --with-http_v3_module

Then add a QUIC listener next to your normal TLS listener and advertise HTTP/3:

server {
    listen 443 ssl;
    listen 443 quic reuseport;
    http2 on;

    ssl_protocols TLSv1.2 TLSv1.3;
    add_header Alt-Svc 'h3=":443"; ma=86400' always;
}

Three details from a 2026 nginx guide save time:

  • Since nginx 1.25.1, the old listen 443 ssl http2 form produces a warning, and http2 on; is its own directive.
  • HTTP/3 is on by default once a quic listener exists, so an explicit http3 on; is redundant.
  • reuseport may appear on only one quic listen line, or nginx will refuse to start.

The Alt-Svc header is what makes browsers switch. The browser connects over HTTP/2 first, sees the header, and upgrades on a later request. Without it, the QUIC listener sits unused. Finally, open the port, for example ufw allow 443/udp. If you forget, the site silently falls back to HTTP/2 and appears fine.

How to verify HTTP/3 is really in use

A working page proves nothing about the protocol. Check each layer:

  1. Header. Run curl -I https://example.com and look for an Alt-Svc line advertising h3. Our guide to reading HTTP headers explains what each line means, and the HTTP status codes reference helps with any unexpected response.
  2. Forced HTTP/3. With a curl build that supports it, curl --http3-only -I https://example.com fails instead of falling back silently. curl --http3 allows fallback, so a success there does not prove QUIC.
  3. Browser. Open DevTools, enable the Protocol column in the Network tab, and look for h3.
  4. Edge logs. Record the negotiated protocol at the server or edge, and track HTTP/3 request share, QUIC handshake failures and TTFB by protocol.

If HTTPS works but HTTP/3 does not, verify the whole UDP 443 path. A successful TCP 443 connection says nothing about QUIC traffic reaching the server. QUIC's anti-amplification rule also limits an unvalidated server to sending three times the bytes it received, so handshake failures show up at the edge, and the request may never reach your HTTP layer. If you suspect network loss on the path, our walkthrough of fixing packet loss and traceroute for latency help locate the hop.

The same trap applies to monitoring. A 200 OK does not mean healthy, and an HTTP/2 fallback is a 200 too. Pair status checks with protocol checks.

Our perspective

We think of HTTP/3 as a change you verify, not a switch you flip. The protocol is sound and browsers are ready, but the failure mode is quiet: UDP blocked, a missing Alt-Svc header, a firewall rule nobody updated. Everything keeps working, so nobody notices that nothing changed.

That is why we build tools that need no installation and no account for core checks. When you change transport settings, you want a fast answer from outside your own network: is the certificate valid, does the site respond, what do the headers say, where does the path slow down?

Our advice is to roll out HTTP/3 beside HTTP/2, watch uptime and response behavior after the change, and keep the check routine. That is where free uptime monitoring, SSL checks, header inspection and traceroute earn their place.

Andreas

Check your site after the change

After enabling HTTP/3, you want to know the site is still up and the certificate still valid. Pingfloat is a free suite of web tools for developers and IT teams: the Website Uptime Monitor, the SSL Checker and Traceroute, plus utilities such as JSON formatting and HTTP header inspection. Core tools work without installation or an account. Browse everything at pingfloat.com.

Pingfloat

Sign-up is optional and adds features such as scheduled uptime monitoring and saved results.

FAQ

Is HTTP/3 always faster than HTTP/2?

No. On a clean, low-latency network the two perform similarly. HTTP/3 pays off on lossy or mobile connections and on pages loading many resources at once. If your server takes a long time to respond, fixing the backend will help more than changing protocol.

What is the difference between QUIC and HTTP/3?

QUIC is the transport protocol, running on UDP, and it handles streams, loss recovery and the TLS 1.3 handshake. HTTP/3 is the mapping of HTTP onto QUIC. You cannot run HTTP/3 without QUIC, and QUIC is the piece that replaces TCP in the stack.

Do I need to disable HTTP/2 to use HTTP/3?

No, and you should not. Some networks block UDP, and browsers then fall back to HTTP/2 over TCP. Browsers also first connect over HTTP/2, then upgrade after they see the Alt-Svc header.

Why does my site still show HTTP/2 after I enabled HTTP/3?

The usual causes are a closed UDP 443 port, a missing Alt-Svc header, an nginx build without the HTTP/3 module, or a client that does not support it. Check each in that order, then confirm with the Protocol column in browser DevTools or curl with HTTP/3 forced.

Sources