VMess vs VLESS: what is the difference and which one to pick

VMess and VLESS both come from the V2Ray family, and both log you in with a UUID. The difference: VMess encrypts traffic with its own cipher and checks the device clock, while VLESS encrypts nothing and leaves protection to TLS or Reality. So VLESS is lighter, doesn't care about the clock and is the one that works with Reality and XTLS Vision. VMess is still fine where a service hands it out, usually over WebSocket with TLS.

Updated

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 traffic

  • Login

    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

    VMessvmess:// and base64-encoded JSON

    VLESSvless:// 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 with security=reality, pbk, sid and usually flow=xtls-rprx-vision. The most common VLESS link today.
  • VLESS through a CDN — type=ws or type=grpc with security=tls and the service's domain in host or sni. 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 aid 0 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.

In Veli

Both links go into one field

In Veli, vmess:// and vless:// links go into the same place: Profiles → Add, paste the link and press “Continue”. The app reads the protocol, transport and security from the link by itself; several links at once, each on its own line, or a subscription address work too. Both protocols connect on Windows, macOS, Linux and Android, and rules by app and site in Apps and sites work on both. On a computer, the first time, the app offers to install the sing-box or Xray module.

If a VMess profile connects but nothing opens, check the clock: Diagnostics → “Check everything” looks at the system clock along with the network. TLS fragmentation in Settings → Security suits VMess and VLESS with ordinary TLS; the switch leaves Reality profiles alone, because a split handshake breaks Reality. For a server of your own, Profiles → Add → “Your own server” installs VLESS Reality over SSH; VMess the app doesn't install.

FAQ

Is VLESS more secure than VMess?

Not by itself: VLESS has no encryption of its own and relies on TLS or Reality. With TLS or Reality both are well protected; VLESS just gets there with less overhead and without depending on the clock.

Why does VMess stop working when the clock is wrong?

VMess mixes the current time into the login. If the device clock differs from the server's by more than about 90 seconds in UTC, the server rejects the connection. Turn on automatic time.

What does alterId 0 mean in a vmess link?

An aid of 0 means VMessAEAD, the modern login mode. A non-zero value is the old mode, deprecated and rejected by current servers by default; ask the service for a fresh link.

Does VLESS work through a CDN?

Yes, over WebSocket, gRPC or another HTTP transport with TLS, just like VMess. VLESS with Reality doesn't: the server must be reachable directly.

VMess or VLESS, one field for both

Paste a vmess:// or vless:// link into Profiles → Add: Veli reads the protocol, transport and security by itself.