Free chat HTML code for your website: copy, paste, done

Want a chat room on your website without writing a backend? HTML5 Chat gives you a single line of HTML to paste into any page. The chat, its server and its webcam streaming are hosted for you.

Create my free chat See plans & pricing

The code

After you create your free chat, you receive your personal embed code. It is one line:

<script src="https://html5-chat.com/script/YOUR_ID/YOUR_TOKEN"></script>

YOUR_ID and YOUR_TOKEN are filled in for you. Paste the line where the chat should appear: in the HTML of a page, in a CMS block that accepts HTML, or in a site builder's "custom code" element.

Choose the size of the chat

The chat is shown in an iframe that takes 100% of the element around it. To control its size, put the code inside a div with the width and height you want:

<div style="width:100%;height:600px">
  <script src="https://html5-chat.com/script/YOUR_ID/YOUR_TOKEN"></script>
</div>

On mobile, a width of 100% and a height of around 600 pixels works well. You can also link to your chat's full-page address instead of embedding it.

What your visitors get

And you get an admin panel to create rooms, moderate (kick, ban, warn), manage users and roles, and adapt the colours to your site.

Chat room, not a support widget

This code gives you a community chat: your visitors talk with each other, in rooms, with text and webcam. If you are looking for a customer-support widget where only your team answers visitors, that is a different kind of tool. HTML5 Chat is built for communities, dating and social sites, events, classes and live shows.

Using WordPress or an existing member area?

On WordPress, install the official HTML5 Chat plugin and add the shortcode to a page or post. If your site already has logged-in members, the auto-login feature passes their username, gender, avatar and role to the chat, signed with JWT, so they don't have to register twice. See the developer documentation.

Frequently asked questions

Is this chat HTML code free?

Yes. The free plan includes up to 50 users at the same time, 3 rooms and 4 webcams, with no time limit. The full version removes the limits and the ads, for €20 per month or €99 per year.

Do I need PHP, Node.js or a database?

No. The chat runs on HTML5 Chat's servers. Your page only needs the one line of HTML, so it also works on static sites and site builders.

Will the chat slow down my page?

The chat loads in its own iframe, separately from your page content, so the rest of your page renders normally.

Can I put the chat on several pages?

Yes. Paste the same code on as many pages as you like; all of them open the same chat and the same rooms.

Can users log in with their existing account on my site?

Yes, with the auto-login feature: your site sends the user's details to the chat, optionally signed with JWT.

Related guides

Get your chat code now

Create your free chat and receive your one-line HTML code by email.