> **DM Link Generator**: Build a click-to-DM link for your X profile, with optional prefilled text.

- **Page:** https://xpert.so/tools/twitter-dm-link-generator
- **Category:** X (Twitter) tools
- **Cost:** free, no account needed
- **Updated:** 26 September 2026 (2026-09-26)
- **WebMCP:** the site tools `check_ai_phrases` (The AI phrases in a draft, scored, with swaps), `count_x_characters` (X's own character count, links as 23), `find_free_tools` (The free tool for a job, with its link), `get_xpert_pricing` (Live plans, prices and the trial)
- **With an account:** the Xpert MCP server (https://xpert.so/mcp) and REST API (https://xpert.so/developers)

# Twitter DM link generator: _one click straight into your DMs_

A DM deep link opens a prefilled direct message to you, the format behind every "DM me" CTA that actually converts. Build yours here. Everything runs in your browser, nothing is stored.

-   100% free
-   No login
-   Runs in your browser
-   No watermark

xpert.so/tools/twitter-dm-link-generator

Your numeric X user ID

Not your @username. Find the number with a lookup tool like ilo.so/twitter-id, or in your X data download under account ID.

Prefilled message (optional)

0 / 500

The sender's compose box opens with this already typed. They can edit it before sending.

Your DM link

Example

https://x.com/messages/compose?recipient\_id=YOUR\_ID

Enter your numeric ID and your deep link appears here, ready to copy. Everything happens in your browser; the ID and message never leave this page.

What the sender sees

You@yourhandle

Start a new message

## How to make a DM link

1.  1

    ### Enter your numeric user ID

    Paste your X user ID, the immutable number behind your handle. The widget explains where to find it.

2.  2

    ### Add optional prefilled text

    Type a short opener the sender's DM box will start with. They can edit it before sending.

3.  3

    ### Copy the link

    The deep link updates live as you type. One click copies it, and a test link opens it in X.

4.  4

    ### Place it where people decide

    Drop it in your bio, at the end of a lead-magnet thread, or in your newsletter footer.

## The format, and how to find your numeric ID

The link is simply `https://x.com/messages/compose?recipient_id=YOUR_ID`, with an optional `&text=` parameter for the prefilled message. The only catch is that X hides your numeric ID in its own UI, so here is how to get it:

1.  Use a third-party lookup like ilo.so/twitter-id, which converts any handle to its numeric ID in seconds.
2.  Or request your archive under Settings, Your account, Download an archive of your data, and read the account ID from the export.
3.  Or, if you use the X API anywhere, the user object's id field is exactly this number.

### Where DM links earn their keep

-   Link-in-bio, the end of lead-magnet threads ("DM me and I will send it over"), and newsletter footers are where these convert best, because the reader has just decided to reach you and the link removes every step in between.
-   Pair it with open DMs. If message requests from everyone are off, the link dead-ends for anyone who does not already follow you, which is exactly the audience a CTA is for.
-   Keep prefilled text short, a few words like "Saw your thread on pricing". A full paragraph of prewritten pitch feels automated and gets deleted or ignored.

## Use it from an AI agent

Updated 26 September 2026

For language models

This page as markdown: [/tools/twitter-dm-link-generator.md](/tools/twitter-dm-link-generator.md). Every tool is listed in [llms.txt](/llms.txt).

In the browser (WebMCP)

The site tools on every page, such as `count_x_characters` and `find_free_tools`.

With an account

Every Xpert feature through the MCP server and the REST API. [MCP](/mcp) · [API](/developers)

## Frequently asked questions

### Why do I need a numeric ID instead of my username?

X's message compose endpoint only accepts the recipient's immutable numeric ID, not the handle. Usernames can change at any time, so the deep link is built on the number that never does. It also means your link keeps working even if you rename your account.

### Does the link work if my DMs are closed?

Only for people who you follow or who can already message you. To make the link work for everyone, open message requests: Settings, Privacy and safety, Direct Messages, then allow message requests from everyone. Otherwise non-followers hit a dead end.

### Can I prefill a message?

Yes. The optional text field becomes a text parameter on the link, and the sender's compose box opens with it already typed. They can edit or delete it before sending, so treat it as a suggested opener, not a script.

### Does the DM link work on mobile?

Yes. It is a normal x.com link, so on phones with the X app installed it hands off to the app and opens the compose screen directly. On desktop it opens the DM composer on x.com.

### Is a DM deep link against X's rules?

No. The messages/compose URL is an official deep link format X supports, the same one X's own share sheets use. You are just building it by hand instead of hunting for it.

## More free tools

[Browse all 58 free tools](/tools)

-   [AI DM Opener Generator3 cold DM openers that read like a person, not a pitch.](/tools/ai-dm-opener-generator)
-   [Bio GeneratorBuild an X bio that tells people why to follow you, from a few inputs.](/tools/bio-generator)
-   [Follower Count CheckerLive follower count and profile stats for any X account.](/tools/x-follower-count)
-   [AI CTA GeneratorGet 3 call-to-action lines that sell without sounding like an ad.](/tools/ai-cta-generator)

Want more than a one-off tool?
Xpert writes in your voice and keeps score.

[Connect your 𝕏 account](https://app.xpert.so/login)[See pricing](/pricing)It drafts posts in your voice, schedules them at your best times, and nothing posts without your approval.

---

Source: https://xpert.so/tools/twitter-dm-link-generator
