One link opens X with your post already written
A click to post link is an ordinary web address. When a reader opens it, X shows the post composer with your words in it, so the only step left is pressing Post. You can put it behind a button on a page, in an email, in a newsletter or in a README.
The address is https://x.com/intent/post followed by up to four settings. The generator fills them in and encodes every character for you, hashtags and emoji included.
| Setting | What it does | Example value |
|---|---|---|
text | The words in the composer, selected so the reader can replace them | Free tools for writing |
url | A full web address added to the post | https://example.com |
hashtags | A comma list without the # sign, added after the text | writing,buildinpublic |
via | Your handle, added at the end as via @handle | yourhandle |
The reader stays in control of what goes out
The link never posts by itself. The reader sees the draft, can edit every word and decides to send it from their own account. A reader who is logged out of X signs in first, then lands on the same draft.
Write the text in the voice of the person posting it, as one sentence they would say themselves. A quote, a result or an announcement with a clear point gets posted far more often than a slogan. After posting, X may suggest your via account as a follow, so use the handle you want people to find.
Count the whole post: text, hashtags, link and handle together
X adds your hashtags, the link and the via line to the text, and the total must fit 280 characters. A link always counts as 23, whether it is short or long, so a tracking address costs the same as a bare domain. Most plain letters and punctuation count 1 and emoji count 2.
The count next to the preview is the weight of the finished post, not of the text box alone. If it passes 280, shorten the text first. The reader can still edit an over-long draft, but a draft that needs editing gets posted less. For a check of any other post, open the free X character counter.
Four steps give you a link, a button and a Markdown line
- Write the post text, then add the page you want people to visit.
- Add one or two hashtags and your handle. Leave the extras empty if the post does not need them.
- Pick the button text and colour and watch the preview change.
- Copy the link for an email, the HTML for a web page or the Markdown line for a README.
The address of this page keeps your settings, so a filled generator is a link you can reopen and send to a teammate. Nothing you type leaves your device.
Put the button where a reader has just finished something
The best spot is right after the line worth sharing: under a pull quote, at the end of an article, in the thank-you line of a newsletter or on a launch page. Give each spot its own text, so the post fits what the reader just read.
Draft the words with the X post generator, pick tags with the hashtag generator and see the result in the post preview before you publish the button. A shared post then needs early reactions from real people to travel, and free likes on X from verified accounts give it that first push.