What is a subscription link (sub link) and how to add it

A subscription link, or sub link, is an https:// address from your VPN service or server admin that answers with a list of servers. A config link such as vless:// is one server in one line; a subscription is where the client downloads all of them from, again and again, so changes on the other side arrive by themselves. Paste it where the client takes subscriptions, not as a single server, and keep it to yourself: whoever has the link uses your access.

Updated

On this page

A subscription link and a config link

A config link carries everything about one server: protocol, address, port and keys. When the server's key changes, the link stops working and you need a new one.

A subscription link carries none of that. It is an address, often https://sub.example.com/sub/ plus a long personal token, with the server list behind it. The client downloads it when you add it and then on a schedule, every few hours or as often as the service suggests. New servers appear, removed ones disappear, changed keys arrive with the next refresh. Sub link, subscription URL, v2ray subscription: different names, one thing.

What is inside a subscription

Behind the address is plain text in one of a few formats. Which one depends on the service, and many panels answer each app in the format that app reads:

  • A base64 list — one long block of letters and digits that decodes into links, one per line. The classic v2ray subscription: a block starting with dmxlc3M6Ly is vless:// encoded, dm1lc3M6Ly is vmess://.
  • A plain list of links — the same vless://, vmess://, trojan://, ss:// or hysteria2:// lines, not encoded.
  • Clash / mihomo YAML — a config with a proxies: list, often with the service's groups and rules.
  • sing-box JSON — a whole sing-box config; the servers sit in outbounds.
  • Xray JSON — an array of complete Xray configs, one per server, named in remarks. Remnawave and Marzban give it to some apps instead of links.

How to look inside

Open the link in a browser. Some panels show a page with your traffic and days left, others the raw text. A wall of letters is base64: copy it and decode it.

Windows (PowerShell)
[Text.Encoding]::UTF8.GetString([Convert]::FromBase64String((Get-Clipboard -Raw).Trim()))

Decodes the copied block into one link per line. Not a valid Base-64 string? The block was cut off or has no padding: use the converter below.

macOS (Terminal)
pbpaste | base64 -D

The same from the clipboard on a Mac.

Linux (terminal)
base64 -d subscription.txt

Save the page as subscription.txt first. A file starting with proxies: or { isn't base64: it is already YAML or JSON.

  • The converter — /tools/subscription/ reads links, base64, Clash / mihomo and sing-box JSON, lists each server with a QR code and writes them in another format. It runs in your browser and doesn't fetch addresses: paste the content, not the link. For Xray JSON there is /tools/json-to-link/: it turns each server back into a link.
  • Converters that take the address — they download your subscription on their own server, so whoever runs it gets your link.

How to add it to a client

  1. 1

    Copy the whole address

    From https:// to the end, with no spaces or line breaks. An “Add to…” button on the service's page wraps the same address for one app, as in hiddify://import/https://…; clients that know such links take them too.

  2. 2

    Add it as a subscription

    Look for subscriptions or adding from a URL. Pasted as a single server, it may be refused or read once and never refreshed.

  3. 3

    On a phone, scan the QR code

    A QR code on the service's page holds the same address, and many phone clients add the subscription straight from the scan.

  4. 4

    Check the list

    The servers appear as a group. Refresh it by hand once to see that it works, then leave it to the schedule.

Subscription, config link or file

  • What it looks like

    Subscription linkhttps://… with a personal token

    Config linkvless://, vmess://, trojan://, ss:// and others

    Config file.conf, .ovpn, .json, .yaml

  • Servers

    Subscription linkA list, as many as the service gives

    Config linkOne

    Config fileOne, or several in a Clash or sing-box config

  • Updates

    Subscription linkBy itself, on a schedule

    Config linkNever: a new key means a new link

    Config fileNever: a new file by hand

  • Where it goes

    Subscription linkThe client's subscriptions

    Config linkAdding from the clipboard or a link

    Config fileImporting a file

  • If someone else gets it

    Subscription linkThey use your access until the link is reset

    Config linkThey use that server until its key changes

    Config fileThe same as a link

Why a subscription comes back empty

  • The list is empty, or zero servers after a refresh

    CauseThe term or the traffic is over, or the service's list is empty for now

    What to doCheck your account or the bot; after renewing, refresh

  • The download times out, while the servers you have still connect

    CauseThe subscription's address is blocked in your network, or its server is down

    What to doRefresh while connected to one of its servers, or ask the service for another address

  • Error 403 or another refusal

    CauseThe service refuses this app, or the device limit is used up

    What to doUse an app the service names, or free a device slot in your account

  • Error 404

    CauseThe link was reset or the subscription removed

    What to doCopy a fresh link from your account or the bot

  • Fewer servers than on the service's page

    CauseThe client can't read some protocols or transports and skips them

    What to doUpdate the client

  • Old servers, nothing new for days

    CauseRefreshing is set to by hand, or the client wasn't running

    What to doRefresh now and set a schedule

  • An encrypted link like happ://crypt…

    CauseOnly the app it was made for can read it

    What to doAsk the service for the plain https:// address

Keep the link to yourself

  • It is a key — whoever has the address gets your servers, traffic and device slots, and the service can't tell them from you.
  • The QR code too — a screenshot of the QR code or the address in a chat is the same as sending the link.
  • Posted it by mistake? — ask the service or the admin to reset it: a new token turns the old link off.
  • Only https:// — over http:// the server list and your token travel in the open.
  • Links from public channels — a subscription passed around a chat is someone else's access or a stranger's server: you don't know who sees where you connect.

In Veli

A subscription is a group in Profiles

In Veli the address goes into Profiles → Add, the same field as links, or into “Provider subscription”. Only https:// addresses are taken. Inside may be links, base64, Clash / mihomo or Xray JSON; each Xray JSON server is written back as a link and connects like a pasted one. The link of an “Add to…” button for Happ, Hiddify, v2RayTun, sing-box or Clash works as it is; an encrypted happ://crypt… link can't be read, and the app says to copy the plain https:// link instead.

The servers become a separate group, refreshed as set in “Subscription settings”: from “By hand” to “Once a week”. A new one takes the schedule the service asks for, or else 12 hours, and refreshes sooner whenever the service asks for more often than you set. On a refresh, servers with the same name and address keep their favorite mark, groups and settings; vanished ones go, but never the one you're connected to. If a refresh fails, your servers stay and the group header says why. In the subscription's menu you can create a “fastest server” profile that picks the fastest of its servers by itself.

FAQ

What is a sub link?

A subscription link: an https:// address that answers a VPN client with a list of servers. The client downloads it again on a schedule, so the list stays current.

Why does my subscription link show random letters in a browser?

That is base64: the list of links, encoded. Decode it, or paste it into a subscription converter, to see the links.

Can I turn a subscription link into a QR code?

Yes. A QR code of the address works like the address itself: phone clients scan it and add the subscription. It is just as secret as the link.

Can I convert a subscription to Clash?

The content, yes: paste it into a converter and take Clash / mihomo YAML. That copy doesn't refresh, so where you can, add the link itself to a client that reads the service's format.

Is it safe to send someone my subscription link?

Only to someone you would give your account to: they get your servers, traffic and device slots. If it leaked, ask the service to reset the link.

Paste the subscription once

Veli reads links, base64, Clash / mihomo and Xray JSON subscriptions, keeps them as a group in Profiles and refreshes them on your schedule.