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.
Every style you need
Three themes × three sizes × three variants. Mix and match.
Copy, paste, done
<!-- 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.
Data attributes
| Attribute | Default | Description |
|---|---|---|
data-url | Current page | URL to discuss |
data-title | document.title | Page title for prompt |
data-text | empty | Custom text snippet |
data-prompt | Per language | Prompt template. Use {url}, {title}, {text} |
data-hints | omitted | ChatGPT hints mode: search (web results) |
data-temporary-chat | omitted | Set to true for a temporary chat (no history saved) |
data-theme | light | light, dark, or minimal |
data-size | md | sm, md, or lg |
data-label | Per language | Custom button text |
data-lang | en | en, de, es, fr |
JavaScript API
// 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:
https://share2chatgpt.franzai.com/go/?url=https%3A%2F%2Fshare2chatgpt.franzai.com%2F&lang=en