JA3 and JA4: how the TLS handshake identifies a client
JA3 and JA4 turn the ClientHello, the first message of the TLS handshake that a browser sends before any HTTP header, into a short fingerprint. The message lists the TLS versions, cipher suites and extensions the client supports, and each kind of software builds it differently, so the fingerprint tells a server what kind of client is connecting.
Check your browser right now
Checking your browser…
What is in a ClientHello
The ClientHello announces the TLS versions the client accepts, its cipher suites in order of preference, and a list of extensions with their parameters: server name, supported groups, signature algorithms, ALPN for HTTP/2 and others. Chrome, Firefox, Safari, curl, Python libraries and Go programs each produce a different combination because they use different TLS libraries and settings.
JA3
Researchers at Salesforce published JA3 in 2017. It joins the TLS version, cipher suites, extensions, elliptic curves and point formats from the ClientHello into one string and hashes it with MD5. The same client software gives the same hash, so JA3 became a common way to recognize malware, scanners and scripts whatever User-Agent they claim.
Why JA3 stopped being stable
JA3 keeps the extensions in the order they appear on the wire. In 2023 Chrome began shuffling the order of TLS extensions on every connection, and other browsers followed. One browser now produces many different JA3 hashes, so JA3 has become much less useful for identifying browsers.
JA4
JA4, released by FoxIO in 2023, sorts the cipher suites and extensions before hashing, so a shuffled order gives the same result. Its first part is readable and encodes the protocol (TLS or QUIC), the TLS version, whether a server name was sent, the number of ciphers and extensions, and the first ALPN value. JA4 belongs to a wider family of fingerprints that also covers HTTP requests and server responses.
How sites use TLS fingerprints
A TLS fingerprint is most useful when compared with what the client claims to be. If the User-Agent header says Chrome on Windows but the handshake looks like a Python library or a Go program, the request almost certainly did not come from that browser. Anti-bot systems at CDNs and large sites run this check before the page even loads. One layer up, HTTP/2 settings and header order give a similar fingerprint.
The fingerprint describes the software that made the connection. Many people run the same browser version and therefore share the same JA4, so the fingerprint cannot tell users apart and works best combined with browser signals, network data and behavior.
Does SpoofLens check this?
Yes. The browser check connects to our separate server, edge.spooflens.com. It reads the TLS handshake before encryption starts, computes JA3 and JA4, and identifies the TLS stack (Chrome / Chromium, Firefox, Safari / WebKit or not a browser) and the HTTP/2 header order. The result is compared with the User-Agent: if the browser calls itself Chrome but the handshake comes from Firefox or from a Python script, this appears among the findings. The JA3 and JA4 values are shown in the section "The connection as the server sees it".
The server also reads the first TCP packet of the connection and names the system that opened it using our own signature, and it compares the network round trip with the one the page sees. These two rules are shown as information for now.
Frequently asked questions
- Is my JA4 fingerprint unique to me?
- No. It identifies the client software and its TLS settings, and everyone with the same browser version on the same platform usually shares it.
- Can a VPN change my TLS fingerprint?
- No. A VPN tunnels the connection without changing the ClientHello your browser sends.
- Why do bots get caught by TLS fingerprints?
- Many scripts claim a browser User-Agent but use HTTP libraries whose handshake looks nothing like a browser's, so the two contradict each other.