On this page
Where the two protocols come from
VMess is the original protocol of V2Ray, the open proxy platform behind most vmess://, vless:// and trojan:// links. It was built to work on its own, even over bare TCP, so it carries its own encryption and its own login check.
VLESS was added to V2Ray in 2020 as a lighter protocol for when TLS already protects the connection. In the Xray fork it later got XTLS Vision and Reality. Today Xray and sing-box speak both, and links of either kind are simply called “v2ray configs”.
VMess: its own encryption and a clock check
VMess encrypts every connection itself, with AES-128-GCM or ChaCha20-Poly1305; the auto setting picks one by the processor. The contents stay hidden even with no TLS. With TLS on top, which is how VMess is usually run, the data is encrypted twice.
To log in, the client mixes the UUID with the current time, and the server accepts only a time close to its own. V2Ray's documentation asks for the device clock to be within 90 seconds of the server in UTC; the time zone doesn't matter. With the clock off, the server silently drops the connection: the client shows a timeout, or “connected” with nothing loading. The fix is automatic time in the system settings.
One more field comes from VMess's history: alterId, aid in a link. A value of 0 means VMessAEAD, the modern login mode. A non-zero value means the old mode, which is deprecated and rejected by current servers by default: ask the service for a fresh link.
VLESS: light, with TLS or Reality doing the protection
VLESS logs you in by the UUID alone: no time check and no encryption of its own, which is why a vless:// link says encryption=none. The protection comes from the layer below: TLS with the server's own domain and certificate, or Reality, which borrows the handshake of a real third-party website.
This gives VLESS a small header, one layer of encryption and no dependence on the clock. The flip side: a VLESS link with security=none has no protection at all. HTTPS sites stay encrypted by themselves, but the network sees where you go and reads everything else.
XTLS Vision, flow=xtls-rprx-vision in a link, is VLESS's own trick. Most traffic inside a VPN is already TLS: the sites you open. Vision doesn't encrypt it a second time and pads the first packets, so the telltale pattern of TLS inside TLS disappears. It works with VLESS over TCP, and VLESS with Reality and Vision is the most common combination today.
VMess and VLESS side by side
Encryption
VMessIts own: AES-128-GCM or ChaCha20-Poly1305, plus TLS if it is on
VLESSNone of its own (
encryption=none): TLS or Reality protects the trafficLogin
VMessUUID mixed with the current time
VLESSUUID only
Device clock
VMessMust be right: V2Ray asks for UTC within 90 seconds
VLESSThe protocol doesn't check it
Reality
VMessNot used: Reality links are VLESS
VLESSYes, usually together with XTLS Vision
Through a CDN
VMessYes, over WebSocket or gRPC with TLS
VLESSYes, over WebSocket, gRPC and other HTTP transports with TLS; not with Reality
Overhead
VMessHigher: its own header and a second layer of encryption under TLS
VLESSLower: a small header and one layer of encryption; with Vision, no double TLS
Link
VMess
vmess://and base64-encoded JSONVLESS
vless://with readable parameters after the?Clients
VMessAlmost every V2Ray, Xray, sing-box and Clash client, old ones too
VLESSXray, sing-box and Mihomo; old Clash builds don't know it
Disguise: what the network sees
Neither protocol disguises anything by itself: what the network sees depends on the transport and the security layer around it. VMess over bare TCP keeps the contents secret, but the stream looks like no ordinary traffic, and restricted networks recognize it more easily.
With WebSocket or gRPC and TLS, the two look the same from outside: an encrypted connection to a website by its domain name. Such a server can sit behind a CDN, and the network then sees a connection to the CDN, not to the server's own IP. To block it, a network has to block the domain or the CDN's addresses, with everything else that lives there. That is why VMess over WebSocket and TLS through a CDN became so common; VLESS over the same transport does the same with less overhead.
VLESS with Reality is disguised differently: the connection starts with the TLS 1.3 handshake of a real third-party website, and anyone who knocks on the server sees that website. No domain or certificate is needed, but Reality doesn't go through a CDN: the server must be reachable directly. With any kind of TLS, clients also imitate a popular browser's fingerprint, the fp field in a link.
Which links you will meet
- VMess —
vmess://followed by base64-encoded JSON, so the link looks like a jumble of letters. Inside,"net": "ws"with"tls": "tls"means WebSocket with TLS, and"aid": "0"the modern login mode. - VLESS with Reality — a
vless://link withsecurity=reality,pbk,sidand usuallyflow=xtls-rprx-vision. The most common VLESS link today. - VLESS through a CDN —
type=wsortype=grpcwithsecurity=tlsand the service's domain inhostorsni. Like VMess over WebSocket, only lighter. - No disguise — VMess without TLS, or VLESS with
security=none. Only for networks that restrict nothing. - A subscription — an
https://address with a list of such links. Services often mix VMess and VLESS in one list, and a client takes them as they are.
Which one to pick
- Your own server — VLESS with Reality and Vision: no domain, no clock to worry about, less overhead, and from outside a visit to a real website.
- A server behind a CDN — because its IP gets blocked, or you reach it only by a domain: VLESS or VMess over WebSocket or gRPC with TLS. VLESS is lighter; take VMess if your panel or clients only offer it.
- Your service hands out VMess — use it. A VMess link with
aid0 and TLS works fine, and you can't turn it into VLESS on your side anyway: the server decides the protocol. - An old client that doesn't know VLESS — VMess, which is understood almost everywhere.
- Neither one connects — the protocol is rarely the reason. More often the network doesn't pass this server or transport: try another server, or Reality instead of plain TLS.