Skip to the code

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.

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

  1. 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.
  2. 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.
  3. 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.com in script-src and in frame-src. With the iframe-only code, frame-src is enough.
If you send a Permissions-Policy
Allow camera and microphone for your own page and for https://chatduo.com. Without that, text chat works and video chat cannot start.

Three options, all optional

Add to the script tagWhat it doesWithout it
data-height="700"Height of the chat on desktop, in pixels, from 420 to 900.620
data-expand="off"Keeps a chat inside its box on phones and in narrow columns.A chat opens over the page and closes back into it.
data-target="#chat"Puts the chat inside the element you name.The chat appears where the script tag is.
<script async src="https://chatduo.com/embed.js" data-height="700"></script>

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.