Widget v1.1.0 · Build local · manual

Share to ChatGPT
in one line

An embeddable button that opens ChatGPT with your page pre-loaded as a prompt. Zero dependencies. Lightweight. One script tag.

0 dependencies
Pure JS
1 script tag

Every style you need

Three themes × three sizes × three variants. Mix and match.

Light / Button
Dark / Button
Minimal / Button
Light / Icon only
Dark / Icon only
Minimal / Icon only
Light / Text link
Dark / Text link
Minimal / Text link

Copy, paste, done

HTML
<!-- share2chatgpt widget -->
<div data-share2chatgpt></div>
<script src="https://share2chatgpt.franzai.com/share2chatgpt.js" async></script>

The button auto-detects your page URL and title. Customize with data-* attributes.


Build your button

Configure every aspect of your button below. Smart defaults: leave URL and title empty and the button will automatically use the page it's placed on. The prompt, label, and default text adapt to the selected language. Only set what you want to customize — everything else just works.

Only absolute https:// or http:// URLs are accepted when you override the default.

Variant
Icon
Theme
Size
Preview
Embed Code

              
Redirect URL

              

Data attributes

Attribute Default Description
data-urlCurrent pageURL to discuss
data-titledocument.titlePage title for prompt
data-textemptyCustom text snippet
data-promptPer languagePrompt template. Use {url}, {title}, {text}
data-hintsomittedChatGPT hints mode: search (web results)
data-temporary-chatomittedSet to true for a temporary chat (no history saved)
data-themelightlight, dark, or minimal
data-sizemdsm, md, or lg
data-labelPer languageCustom button text
data-langenen, de, es, fr

JavaScript API

JavaScript
// Re-scan DOM after dynamic content loads
Share2ChatGPT.init();

// Build a ChatGPT URL programmatically
var url = Share2ChatGPT.buildUrl({
  url: 'https://example.com',
  title: 'My Page',
  lang: 'en'
});
window.open(url, '_blank', 'noopener,noreferrer');

Redirect URL

No widget needed. Link directly:

URL
https://share2chatgpt.franzai.com/go/?url=https%3A%2F%2Fshare2chatgpt.franzai.com%2F&lang=en