Click to Tweet (X Intent Link) Generator
Write the post, add a link and hashtags, and get a URL that opens X with everything filled in. The same page builds follow, like, repost and reply links for buttons, newsletters and blog posts.
- Post, follow, like, repost and reply links
- Counted the way X counts
- URL, HTML and Markdown output
- Nothing leaves your browser
How to make a click to tweet link
- Pick the action. Post is the classic click-to-tweet. Follow, Like, Repost and Reply open X with that action ready for the visitor to confirm with one tap.
- Fill in the fields. For a post: the text, an optional link, hashtags without the # and the account to credit with "via". For the others: a username or a post URL.
- Copy the format you need. The plain URL for emails and chat, the HTML link for a website or newsletter, or Markdown for docs and README files. Test it once in a private window.
The intent URL parameters
| Endpoint | Parameters | Opens |
|---|---|---|
x.com/intent/post | text, url, hashtags, via, in_reply_to | Compose box with the post filled in |
x.com/intent/follow | screen_name or user_id | Follow confirmation for that account |
x.com/intent/like | tweet_id | Like confirmation for that post |
x.com/intent/retweet | tweet_id | Repost confirmation for that post |
Everything is URL-encoded, so spaces become %20 and line breaks become %0A. The tool does the encoding; if you edit the link by hand, keep the encoding or the text will be cut at the first special character.
Writing a pre-filled post people actually send
- Keep it under 200 characters so the visitor has room to add their own take. Posts with a personal line attached get more engagement than verbatim copies.
- One hashtag, two at most. The post goes out under the visitor's name, and hashtag-heavy posts look like promotions on their timeline.
- Put the link last. X renders the preview card from the first link, and a card below the text reads better than one in the middle.
- Use
viarather than typing your handle into the text. It stays at the end and X formats it consistently. - Test the link while logged out. The intent page shows a login prompt first; that is normal, and the content is kept after sign-in.
Click to Tweet Generator: FAQ
What is a click to tweet link?
A URL on X's intent endpoint (x.com/intent/post) with the text, URL and hashtags passed as parameters. When someone clicks it, X opens the compose box with that content already filled in; the visitor still has to press Post, so nothing is sent without their consent.
Does the link work with both twitter.com and x.com?
Yes. The tool uses x.com/intent/post, and twitter.com/intent/tweet still redirects to it. Old links with the "tweet" endpoint keep working too.
How long can the pre-filled text be?
The usual X limit: 280 weighted characters for free accounts, with any URL counted as 23 and hashtags counted at full length. The counter under the text box uses the same rules, so if it reads under 280 the post will fit.
What does the "via" parameter do?
It appends "via @username" to the end of the pre-filled post. It is a polite way to get credit when other people share your article, and it does not count against the author's own post.
Can I make a follow button without X's JavaScript?
Yes. The Follow tab gives you a plain link to x.com/intent/follow?screen_name=username. Style it as a button on your site and it works without any script; X's official follow button widget is also available in our Embed Code Generator.
Can I track clicks on a click to tweet link?
X does not report intent clicks back to you. Add UTM parameters to the URL you include in the post (so the visits from X are visible in your analytics) and, if you need click counts on the button itself, wrap the link in your own redirect or use your site's event tracking.
More free X tools and guides
- Twitter Embed Code Generator: embed a post, timeline or follow button on your site
- Twitter Character Counter: check the pre-filled text the way X counts it
- Tweet URL to ID: pull the tweet ID out of any X link
- Advanced Search Builder: find posts that already link to your site
- X Promotion vs. X Ads vs. Buying Followers: which way to grow pays off