How to Create Overlays on OBS for Streams
In this article
- Building an OBS overlay with a Browser Source
- Adding image, video and text overlays without a browser
- Layering an overlay so the game stays visible
- Positioning overlays with exact numbers
- How to tell the overlay is working
- When the overlay shows a black box or will not load
- Overlay sources that update live during a stream
- OBS overlay questions that come up after the first setup
The most common way to add an overlay in OBS is a Browser Source: you point OBS at an overlay file or a hosted overlay link, set the width and height, and OBS draws it on top of your scene. That covers most cases, including alerts, chat boxes and animated frames. The method changes when the overlay is a plain image, a video file, or a window from another program, because each of those uses a different source type.
Building an OBS overlay with a Browser Source
A browser source is the workhorse. It renders a web page inside your scene, so it can hold static graphics, animation, or live widgets that update on their own. Menu labels can differ slightly between versions, but the source list and properties panel names have stayed stable.
- Open OBS and select the scene in the Scenes list where the overlay should appear, usually your main gameplay or camera scene.
- Click the plus button under Sources and choose Browser from the list.
- Name the source something you will recognise later, such as Overlay Frame, and click OK.
- In the properties window, paste the overlay URL into the URL field. If you have a local file, tick the Local file box and browse to the HTML file instead.
- Set Width to 1920 and Height to 1080 for a 1080p canvas. Match these to your OBS base resolution under Settings > Video if you stream at a different size.
- Leave FPS at 30 unless the overlay has fast animation, in which case set it to 60.
- Tick Shutdown source when not visible and Refresh browser when scene becomes active so the overlay reloads cleanly between scenes.
- Click OK, then drag the source in the preview to position it. A full-frame overlay should sit at 0,0 and cover the whole canvas.
If the overlay looks blurry or cut off, the width and height in the browser source do not match the design. Set them to the exact pixel size the overlay was built for, then right-click the source and choose Transform > Fit to screen to snap it to the canvas.
Adding image, video and text overlays without a browser
Static graphics such as a frame, a lower third or a logo do not need a browser source. Use Image for PNG files with transparency, and Media Source for video files or animated image formats. Text overlays use the Text source, which is lighter than a browser source and easier to edit mid-stream.
- Click the plus under Sources and pick Image, Media Source or Text.
- For Image, browse to a PNG with a transparent background. A 1920x1080 PNG at 72 to 150 pixels per inch is plenty for streaming.
- For Media Source, browse to the file, tick Loop if it should repeat, and tick Restart playback when source becomes active.
- For Text, type the wording, then set the font, size and colour in the properties. A 48 to 72 point font reads clearly at 1080p.
- Drag the source above the gameplay source in the Sources list so it draws on top, then position it in the preview.
Order matters more than anything else here. Sources higher in the list draw over sources below them, so an overlay frame must sit above the game capture and below any alert that should appear in front of the frame.
Layering an overlay so the game stays visible
A good overlay has a clear stack. Put the game capture or display capture at the bottom, the camera above it, then the frame or border, then alerts and chat on top. If the frame covers the whole screen with a solid centre, the game disappears, so use a PNG with a transparent middle or a border-only design.
For a 1920x1080 canvas, a typical layout leaves the middle 1600x900 area clear for gameplay and uses the outer band for camera, chat and labels. A camera box around 400x300 pixels in a corner is a common size. Keep text at least 40 pixels tall so it survives compression on mobile viewers.
Positioning overlays with exact numbers
Dragging with a mouse is quick but imprecise. Right-click a source, choose Transform > Edit transform, and type the numbers directly. Position X and Y set the top-left corner, and Bounding Box width and height set the size. For a full-frame overlay on a 1080p canvas, X is 0, Y is 0, width is 1920 and height is 1080.
To centre a 400x300 camera frame, set X to 1520 and Y to 780 for a bottom-right corner with no margin, or subtract a margin of 20 pixels to get X 1500 and Y 760. Lock a finished source with the lock icon so a stray click does not move it during a stream.
How to tell the overlay is working
Check the preview before you go live. The overlay should appear in the OBS preview exactly as it will on stream, with no black box behind it and no scrollbars at the edges. A black box usually means the browser source has no background transparency, which is set inside the overlay file itself rather than in OBS.
Record a 30-second test clip and watch it back at full size. Look for text that is too small on a phone screen, animation that stutters, and any overlay element that covers a health bar or map corner. If the overlay updates live, such as a chat box, send one test message and confirm it appears within a few seconds.
When the overlay shows a black box or will not load
The single most common failure is a browser source that loads but shows nothing. Nine times out of ten the URL is wrong, the local file path has moved, or the overlay needs an internet connection that is not there. Open the same link in a normal browser first; if it renders there, the problem is in OBS settings, not the overlay.
If it renders in the browser but not in OBS, right-click the source and choose Refresh cache of current page, then check that the width and height are large enough for the design. A page built for 1920x1080 squeezed into a 800x600 source will crop badly. Also confirm the source is not hidden, muted in visibility, or sitting below an opaque source in the list.
For local files, keep the HTML file and its image and script folders together in one folder, because moving the HTML alone breaks the links inside it.
Overlay sources that update live during a stream
Alerts, chat boxes and goal bars are usually hosted overlays with their own link, and they update without you touching OBS. Add them as browser sources and leave the refresh options on so they reconnect when you switch scenes. If an alert stops firing, refresh the cache and check that the alert service is still connected in your browser.
Recording a backup is worth the two minutes: capture a short clip with the overlay running so you can confirm timing and placement, and keep a copy of any local overlay files in a second folder. That way a broken link mid-stream has a quick fix.
OBS overlay questions that come up after the first setup
Can an overlay be reused across several scenes?
Yes. Add the source to one scene, then right-click it and choose Copy, switch scene and choose Paste Reference. A reference shares the same source, so editing it once updates every scene that uses it.
Does a browser overlay cost much performance?
Each browser source runs its own page, so several animated ones add up. Static images and text sources are lighter. If frames drop, set the browser source FPS to 30 and turn off sources you are not showing.
What size should overlay graphics be?
Build them at the same resolution as your OBS canvas, usually 1920x1080, and keep important elements inside a safe margin of about 60 pixels from each edge so they are not clipped on some platforms.