Markdown to X / Twitter Image

Convert concise Markdown notes into feed-friendly images for X without manually laying out each post.

Thread summary to X image

Export settings

The short version

A fast Markdown workflow beats rebuilding the same message in a graphics app.

md2img

Design for a single image in the timeline

A direct photo upload is often useful on X when a table, indented code sample, or three-line result will be easier to see as an image. Decide what the photo adds beyond the post text. For one photo, X documents full display of standard aspect ratios between 2:1 and 3:4. The two direct upload presets stay inside that range. A post with a URL can instead have a website preview, which depends on the destination's metadata and has a separate presentation.

PlacementEditor canvasSuggested content
X landscape single photo1200 × 675One headline plus a few short lines or a compact code block
X portrait single photo900 × 1200A short sequence with a heading and one idea per group
Website share image1200 × 630 Open GraphA short page title and one line describing the destination

These are usable editor canvases. X describes a ratio range for single photos rather than a mandatory 1200 × 675 file. The Open Graph preset is a general website link-card starting point, and the result on X depends on its card rules and the metadata served by the page. Avoid an exact universal safe-area claim for thumbnails or multi-photo posts. Leave padding and make the key line recognizable at feed width. Check the attached photo in the composer, then open a small screen to confirm. X photo post help

Export a timeline card

  1. Paste a focused Markdown draft. Start with the result or problem that someone can recognize without reading earlier posts in a thread. Add a snippet, small table, or list only if it reinforces that idea. Move the link, sources, and long explanations into the post text. Avoid pasting a thread as one long block if it needs to be read at phone width.
  2. Pick a landscape or portrait canvas. Landscape is useful for a wider function or a compact announcement. Portrait gives stacked steps room. Preview the longest line right away. If extra height encourages a longer headline rather than independent steps, use the wider card or shorten the text.
  3. Check punctuation and visual hierarchy. Give the headline enough weight, move the important information away from the edges, and compare two templates. Try Dark Code if syntax highlighting needs a clear background. Reduce long URLs to a descriptive name since the image will show their pixels without making them clickable.
  4. Export PNG or JPG and inspect the attached file. Start with PNG for text and symbols. For a photo-heavy layout, try JPG and compare the two files. Upload the chosen export while drafting the post and check the crop. With multiple photos, make each image self-contained. Describe the photo with X's image description controls where available.

Three posts to assemble from the example library

  • Product launch. Load Launch announcement. Keep the new capability and remove any list item that merely describes how to use the tool. Choose landscape and check the first two lines without zooming. If the post title already gives the new capability, place a concrete before-and-after detail in the card instead.
  • Technical result. Open Code snippet, switch to X landscape, and shorten comments so the function and one expected filename are the center of attention. Export at 1200 × 675. Add a link to the full implementation or paste the key expression in the post. Use the image to show indentation and syntax.
  • A short walkthrough. Adapt Tutorial checklist to “Before sharing a changelog.” Choose portrait and put a short verb at the start of each item. If everything remains legible at timeline width, one image may be enough. When it takes two cards, use meaningful headings and keep related steps together so the second card can be read on its own.

Pick a direct image, a link card, or plain text

Choose a photo attachment when the point will be understood quickly in the timeline and the layout matters. A compact before-and-after comparison, a message with a clearly named metric, or a short code sample can all benefit. Give enough context to a reader who opens the photo directly, and avoid text near the edges that depends on an exact rendering surface. Use one image to make one claim. Put supporting details in the post or a reply when the image starts looking like an article.

Choose a website preview if the intended action is opening a page. Set the link metadata on that page and check the platform's actual card behavior. A downloaded PNG is just the asset for that metadata or a direct upload. Choose plain text for copyable commands, clickable URLs, or a short statement that requires no layout. A photo can show the outcome alongside a copyable example, but it should be optional for people using screen readers or browsing without images enabled. Write an alternative description of the takeaway.

Troubleshoot a preview that looks wrong

If the uploaded image looks soft, compare it with the local export at the same screen width. Check the encoded file type and dimensions first. If the export looks crisp locally at full size but its post preview is too small, a larger source of the same dense layout may still be difficult to read. Remove a column, shorten the headline, or put the details in the post text. Try a single attachment when a multi-image arrangement shrinks each card too much.

For a changelog, use the post body for a searchable release identifier and the image for what changed. If two figures are compared, label them directly instead of asking readers to decode a tiny legend. Check the title independently of the post so someone opening the attachment immediately knows which project and feature it describes.

If a single card looks good in the composer but users see a different arrangement after sharing a URL, confirm whether you posted an attachment or a generated link preview. For a link, inspect the HTML metadata and correct the image URL or version it when replacing a cached file. For a photo, check the attached image and whether it was re-encoded in an earlier editing step. Resending an already compressed picture through several services can make lines and text look worse. Export again from the Markdown and keep that source for future corrections.

Frequently asked questions

Is 1200 × 675 the only size X supports?
No. It is a 16:9 layout option inside the documented single-photo ratio range. The editor also offers a 3:4 portrait.
Can I treat a multi-photo post as one big continuous layout?
Preview the exact arrangement after attaching the photo set. Separate crops and display sizes can break a continuous design.
Does the 1200 × 630 Open Graph preset control the X card?
The preset renders a file. The destination page metadata and the platform's card rules control the preview.
How should I prepare a link in the image?
Put a clickable URL in the post or relevant page and use a short descriptive label in the image if needed.
What is an appropriate font size?
Check the smallest important word at the actual mobile display size. Shorten lines or remove secondary detail if it cannot be read comfortably.
How do I describe a code image?
Summarize what the code does and provide a copyable link or the essential command in the post.

Related tools and examples