For website owners
One line puts ChatDuo on your site
Paste it where the chat should appear. Your visitors get free random video and text chat with strangers, 18+, without leaving your page.
<script async src="https://chatduo.com/embed.js"></script>
Sizes itself to your layout. On phones a chat opens full screen and returns to your page when it ends.
<iframe src="https://chatduo.com/embed/v1/" title="ChatDuo random video chat" allow="camera; microphone; autoplay; fullscreen" referrerpolicy="origin" loading="lazy" width="100%" height="620" style="width:100%;height:620px;border:0"></iframe>
No script from ChatDuo runs on your page. The chat stays inside the box at the size you give it. Keep every attribute: without allow the camera will not start, and without referrerpolicy ChatDuo cannot tell which site it is on.
It works the moment the page loads. ChatDuo reviews every new site and can approve, limit or remove an embed at any time.
Live preview. This is the real chat, loaded with that one line.
Three steps, and the third is ours
- Paste the line. Anywhere in the body of a page: a custom HTML block in WordPress, an embed element in a site builder, or straight into your template.
- The chat is live. Text and video, interests, the 18+ confirmation, Report and Block: the same chat as on chatduo.com, and your visitors meet everyone who is on ChatDuo, not just people from your site.
- We review your site. The first load registers your site with us. Nothing to fill in. Approved sites keep running. A site we remove shows a short notice in place of the chat.
What to know before you paste
- Your page stays yours
- The chat runs in a frame served by chatduo.com. It cannot read or change your page, and it sets no cookie and no storage on your site.
- Adults only
- ChatDuo is 18+ and asks every visitor to confirm it before a chat starts. That confirmation is part of the chat and cannot be skipped or restyled.
- The camera prompt names your site
- Browsers ask for camera and microphone in the name of the page the visitor is on. Your visitors will see your address in that prompt.
- Secure pages only
- Your page must be served over https. Browsers do not give cameras to pages that are not.
- One look
- The chat keeps ChatDuo's design everywhere. You choose where it sits and how tall it is.
- If you send a Content-Security-Policy
- Allow
https://chatduo.cominscript-srcand inframe-src. With the iframe-only code,frame-srcis enough. - If you send a Permissions-Policy
- Allow
cameraandmicrophonefor your own page and forhttps://chatduo.com. Without that, text chat works and video chat cannot start.
Questions site owners ask
My page shows a notice instead of the chat. Why?
The notice says which case it is. "Waiting for approval": we are reviewing new sites before they go live, and yours is in the queue. "Not available on this site": we removed the embed from your site; the notice carries a reference you can quote to us. "Can't tell which site this is": your page hides its address from embedded content; use the script, or keep referrerpolicy="origin" on the iframe. "Needs a secure page": serve the page over https.
Does it work on phones?
Yes. On a phone the start card sits in your page at its natural height. When a visitor starts a chat it fills the screen, with the keyboard pushing the message box up, and it returns to your page when they leave.
Will it slow my page down?
The script is under 3 kB compressed and loads without blocking your page. The chat itself loads only when it is about to scroll into view.
Will the page jump when the chat appears?
It can, because the script loads without holding your page up. Give the chat a place and the page stays still: put <div id="chat" style="min-height:620px"></div> where it should sit and add data-target="#chat" to the script tag. Use the same height you set with data-height.
Can I put it inside another frame, or sandbox it?
No. The frame must sit directly on your page, and a sandboxed frame cannot use the camera. In both cases the chat shows a notice instead of starting.
How do I remove it?
Delete the line. Nothing else was installed.