Where to Find Your YouTube Stream Key for OBS in 2026

Published on | Updated

Your YouTube stream key is in YouTube Studio under Create, Go Live, Stream tab. Paste it into OBS, keep one key for every stream, fix key errors and reset it.

A streamer in headphones at a desk with two monitors showing OBS and a stream dashboard, with a microphone and an audio mixer in front of him

OBS asks for a stream key and YouTube Studio does not make it obvious where that key is. It sits in one place, the Stream tab of the Live Control Room, and it stays the same between streams unless you change it. Below: the click path as YouTube's help shows it on 4 November 2026, where each field goes in OBS 33.0.1, when to connect your account instead, and what OBS's errors mean when YouTube refuses the key.

Quick answer: Your YouTube stream key is in YouTube Studio. Click Create in the top right, then Go Live to open the Live Control Room, and open the Stream tab. Under Stream key, copy the key. In OBS, open Settings, Stream, choose the YouTube RTMPS service, click Use Stream Key, leave Server on Primary YouTube ingest server and paste the key into Stream Key. On your own PC, Connect Account (recommended) works without a key. If the key leaks, click Reset next to it in the same Stream tab; only the channel owner or a manager can do that.

Where to Find Your YouTube Stream Key

These are the steps from YouTube's encoder streaming page, as of 4 November 2026:

  1. Go to YouTube Studio.
  2. From the top right, click Create, then Go Live. This opens the Live Control Room.
  3. Click the Stream tab in the left menu.
  4. If this is your first live stream, edit your stream and click Create stream. If you have streamed before, YouTube loads your previous stream settings, "including your stream key, which means you won't need to update your encoder."
  5. Under Stream key, copy the key. The Stream URL on the same page is the server address, which OBS already has.

Two things must be in place first. Live streaming has to be enabled: YouTube asks for a verified channel and no live streaming restrictions in the past 90 days, and enabling it for the first time may take up to 24 hours. You also have to be at least 16 years old to live stream.

Shortcut: OBS's Get Stream Key button opens youtube.com/live_dashboard, which on 4 November 2026 redirects to the live dashboard in YouTube Studio.

Can't see the key? Check your role. YouTube's permissions table says a Viewer "can view all stream settings except the stream key". Ask the channel owner to change your role, or to paste the key for you.

YouTube describes the key as "like your YouTube stream's password and address": it tells your encoder where to send the feed and lets YouTube accept it. Blur it when you share your screen, and write a placeholder such as YOUR-STREAM-KEY in screenshots and support tickets.

Paste the Key into OBS

In OBS 33.0.1, the current release from 29 October 2026:

  1. Open Settings and click Stream.
  2. Set Service to YouTube - RTMPS. Older tutorials say "YouTube / YouTube Gaming"; OBS's service list keeps that and other old names as aliases of this entry.
  3. Click Use Stream Key.
  4. Set Server to Primary YouTube ingest server.
  5. Paste the key into Stream Key. Show reveals it for a check against Studio; hide it again afterwards.
  6. Click Apply, then OK, then Start Streaming.

From the Stream tab you are live as soon as OBS starts sending. For a scheduled stream, start the encoder, wait in the Live Control Room for the preview, then click Go live.

OBS offers four YouTube servers. Only one is right for a normal stream:

Server name in OBSAddressUse it when
Primary YouTube ingest serverrtmps://a.rtmps.youtube.com:443/live2Every normal stream
Backup YouTube ingest serverrtmps://b.rtmps.youtube.com:443/live2?backup=1Only for a second, identical stream sent at the same time as the primary
Primary YouTube ingest server (legacy RTMP)rtmp://a.rtmp.youtube.com/live2Only when your setup cannot send RTMPS; this one is not encrypted
Backup YouTube ingest server (legacy RTMP)rtmp://b.rtmp.youtube.com/live2?backup=1Same rule as the RTMPS backup

Never pick the backup as your only server. YouTube's API reference describes it as an option for "simultaneously streaming the content that you are sending to the ingestionAddress to this URL", with errors when primary and backup differ in bitrate, resolution, frame rate, keyframe frequency or codec. One OBS output sends one stream, so use Primary. YouTube recommends RTMPS because "your data will be encrypted all the way into and through Google's servers."

Tools that take one address instead of two fields, such as an FFmpeg command, need the URL and key joined. YouTube's API reference gives the format as STREAM_URL/STREAM_NAME, so with the key from Studio it becomes rtmps://a.rtmps.youtube.com:443/live2/YOUR-STREAM-KEY.

Connect Account or Stream Key?

OBS has had a YouTube integration since version 27.1 (September 2021), which lets you "connect your YouTube account without using a stream key". On your own PC it is the easier route; the stream key wins everywhere else.

Connect Account (recommended)Use Stream Key
What OBS getsAccess to your YouTube account through a Google sign-inOnly the key
Where you sign inA web browser on the same machine as OBS: OBS waits for Google's answer on 127.0.0.1No sign-in
Creating the broadcastManage Broadcast button next to Start Streaming: title, privacy, latency, auto-start and auto-stop, scheduleIn the Live Control Room in Studio
Extra panels in OBSYouTube chat and a YouTube Live Control Room dockNone
Works outside OBS (FFmpeg, hardware encoders)NoYes, any RTMP or RTMPS encoder
Headless server or VPS without a desktopImpractical, the sign-in needs a browser on that machineYes
Switching it offDisconnect Account in OBS's Stream settingsReset the key in Studio

The Manage Broadcast window creates a new broadcast or selects an existing one, with a "Remember these settings" option. If OBS froze while you connected your YouTube account, update to 33.0.1, whose hotfix notes list "Fixed a deadlock when logging into the YouTube integration."

Keep One Key for Every Stream (24/7 and VPS Setups)

By default the key does not change between streams: the Stream tab loads your previous settings and key. When you start a new stream with Reuse settings, YouTube copies "the previous stream's metadata, settings, and the stream key."

For a machine that streams without you, such as a server running OBS or FFmpeg around the clock, make a custom key:

  1. In the Live Control Room, open the Stream tab.
  2. Under Select stream key, click Create new stream key.
  3. Enter your settings and click Create. The key now shows up in your stream key list.

A custom key also lets you set the resolution yourself. By default YouTube detects resolution and frame rate itself, which it recommends; a custom key adds Turn on manual settings under Stream Resolution.

A second key is also how YouTube takes a separate vertical stream from your encoder: in the Stream tab, set the vertical preview from Auto to Encoder, choose RTMP(S) and pick the second key in the Stream key dropdown.

On a Space-Node streaming VPS, OBS Studio comes pre-installed and you work in it from your web browser; the key goes in as above. For the server side, see 24/7 OBS streaming from a VPS, the FFmpeg route on a Linux VPS and OBS auto reconnect.

Settings YouTube Asks For

YouTube detects your encoder settings and transcodes for viewers; you set resolution, frame rate and bitrate. From YouTube's encoder settings page on 4 November 2026:

SettingYouTube's value
ProtocolRTMP/RTMPS
Video codecH.264, H.265 (HEVC) or AV1
Frame rateUp to 60 fps
Keyframe frequency2 seconds recommended, never more than 4
Bitrate encodingCBR
AudioAAC or MP3, 128 kbps stereo at 44.1 kHz
1080p60, H.2646 Mbps minimum, 17 Mbps recommended
1080p30, H.2645 Mbps minimum, 14 Mbps recommended
720p60, H.2643 Mbps minimum, 8 Mbps recommended

With the YouTube RTMPS service selected, OBS applies YouTube's limits from its service list: a 2 second keyframe interval, at most 51,000 kbps video and 160 kbps audio, and H.264, HEVC or AV1. OBS accepting HEVC and AV1 does not mean your PC can encode them, so H.264 is the safe default. More in YouTube Live encoder settings and best OBS settings for streaming.

Errors and What They Mean

The messages below are OBS's exact wording from its English language file.

MessageWhat it meansWhat to do
"Stream key is missing. Open settings to enter the stream key in the 'Stream' tab."Use Stream Key is selected but the field is emptyPaste the key, or use Connect Account
"Could not access the specified channel or stream key, please double-check your stream key. If it is correct, there may be a problem connecting to the server."YouTube did not accept the key OBS sent: it was reset since you pasted it, part of it is missing, or it belongs to another channelYouTube's fix for encoder start errors: "get a new stream key in the Live Control Room and update your encoder." Copy it again under Stream key and paste it
"Failed to connect to server"OBS could not reach the ingest serverPick Primary YouTube ingest server from the list and check that your network or firewall lets OBS out on port 443, the port YouTube's RTMPS ingest requires
"Invalid Path or Connection URL. Please check your settings to confirm that they are valid."The server address is not one OBS can use, usually a typo in a custom serverChoose the YouTube RTMPS service instead of a custom one. YouTube needs the protocol rtmps, a valid YouTube server and a valid application path (live2 in OBS's list), with the key only in the Stream Key field
"Live streaming is not enabled on the selected YouTube channel."Connect Account found a channel without live streamingEnable live streaming and verify the channel
"Live streaming is unavailable on the selected YouTube Channel."Live streaming is not available on the channel yet, for example because you enabled it recentlyOBS's own message adds that it "may take up to 24 hours"; wait and try again
"YouTube is not receiving data for your stream. Please check your configuration and try again."The broadcast exists but no video arrives at YouTubeCheck that OBS is actually streaming, then the stream health in Studio

Typing the server by hand? YouTube's RTMPS guide adds two causes: an SSL error usually means RTMPS sent to a plain RTMP server (the hostname must contain "rtmps") or the wrong port, and a timeout can mean plain RTMP sent to an RTMPS server.

Reset a Leaked Key, and Who Can

If the key showed up on stream, in a screenshot or in a chat, reset it:

  1. Go to YouTube Studio.
  2. In the top right, click Create, then Go Live to open the Live Control Room.
  3. Select the Stream tab from the left menu.
  4. Find the Stream key section.
  5. Click Reset next to your hidden stream key.
  6. Copy the newly generated key and update your encoder software.

Update every place the old key lives: your PC, a second streaming PC, a VPS, an FFmpeg script. To keep it safe on a server, see protect your stream key on a VPS.

Who can do what with the key, from YouTube's reset note and its channel permissions table:

RoleLive streamsStream key
OwnerCan do everything, including managing live streamsCan reset
ManagerCan manage live streamsCan reset
EditorCan manage live streamsCan't delete or reset stream keys
ViewerCan view and monitor streams, can't manage themCan't see the key

FAQ

Where do I find my YouTube stream key?

In YouTube Studio: Create (top right as of 4 November 2026), Go Live, then the Stream tab of the Live Control Room. The key is under Stream key.

Does the YouTube stream key change every stream?

No. YouTube loads your previous stream settings, including the key, so your encoder needs no update. It changes when you reset it or pick another key under Select stream key. For a fixed key, use Create new stream key.

Should I use Connect Account or a stream key in OBS?

Connect Account for OBS on your own PC, with broadcasts and chat inside OBS. A stream key for FFmpeg, hardware encoders or a server without a desktop, because the Google sign-in must finish in a browser on the machine that runs OBS.

Why does OBS say it could not access the channel or stream key?

YouTube rejected the key: it was reset after you pasted it, the copy is incomplete, or it belongs to another channel. Copy it again from the Stream tab and check that Server is the primary RTMPS server.

Who can reset a YouTube stream key?

The channel owner or a manager. YouTube says editors and viewers do not have this permission, and viewers cannot even see the key.

What is the YouTube RTMP server URL for OBS?

rtmps://a.rtmps.youtube.com:443/live2, listed in OBS as Primary YouTube ingest server. The unencrypted legacy address is rtmp://a.rtmp.youtube.com/live2. The ?backup=1 addresses are for a second, simultaneous stream, never your main server.

Sources

All opened on 4 November 2026: