Short answer
Point the code at x.com/yourname for a profile, at a post link for a specific post, or at an X post intent link if you want people to publish a pre-written post. Profile codes are the shortest and scan most easily. X usernames are 1 to 15 letters, numbers or underscores.
Three ways to point a code at X
Your profile. The code holds https://x.com/yourname, between 15 and 29 characters. At error correction M that is a version 2 or 3 code (25 or 29 modules a side), small enough for a badge or the corner of a slide. It's the one to use on business cards, merch tags, stickers and conference lanyards.
A specific post. Paste the post link (Share, then Copy link). Good for a pinned thread, a launch announcement, a giveaway post or a recording of a talk. The generator strips tracking parameters like ?s=20 and rewrites twitter.com to x.com, so the code stays as small as possible.
A pre-written post. The code holds an X intent link: https://x.com/intent/post?text=.... When someone scans it, X opens with your text in the compose box. It suits events ("At the spring market today #stallname") and feedback requests. People can edit or cancel the post, and you should never write text that pretends to be their own opinion.
Placement ideas that tend to work
- Last slide of a talk, big enough to scan from the back row. For a projector in a 15 metre room, the code should fill at least a third of the screen height. Check from the back of the room before you start.
- Merch table and stall signs, next to a one-line reason to follow ("Show dates and new songs").
- Business cards and email signatures, alongside your handle written as text.
- Packaging inserts for small shops that announce restocks on X.
Use the size calculator for signs and posters, and remember that people on the street give a code about three seconds of attention. If you want one code for X plus your other links, make a square page and point the code there.
X and Twitter are trademarks of X Corp. This tool is independent and not affiliated with or endorsed by X Corp.
Sources
Questions
Does the code still work if I change my username?
No. A profile code contains x.com/yourname, so a new username breaks it. If you change handles often, point the code at a square page you host and put your current profile link there.
What does the 'Pre-written post' option do?
It encodes an X post intent link. Scanning opens X with your text and optional link already in the compose box; the person still decides whether to post it. Keep the text short and honest about what you're asking.
Should I use x.com or twitter.com links?
Either opens the same profile. We use x.com because it's the current address and it's three characters shorter, which keeps the code a little smaller.
Can I get the code without the Post on X button?
The button is optional and only opens X's compose window with a link to your profile; it doesn't post anything by itself. Download the PNG or SVG and ignore it if you don't need it.