Turn Text or Code into a Card Image
Write a line of text or a few lines of code, pick the card size and colour, and get a PNG ready to publish.
Use this tool in your browser without installing software.
About this tool
For a tweet, a LinkedIn post, an Instagram story or a slide, a quote or a few lines of code on a gradient card is far more noticeable. This tool turns your text into an image in the browser: pick one of the common card sizes, choose the gradient, and the font takes the largest size that still fits the whole text. Long text wraps onto several lines, and long tokens such as links break instead of running off the card. The PNG comes out at the card size and is ready to publish. No text is ever sent anywhere.
How to use it
- 1
Write the text or code in the box; up to 500 characters are accepted.
- 2
Pick the card size and gradient; the font size adjusts automatically.
- 3
Download the PNG and use it in your post or slide.
If the file will not open
- The download button stays disabled.
The text box is empty. Write a sentence and the card is built.
- The text runs off the card.
The text is longer than the current size can hold; the tool shrinks the font, but a larger card or shorter text works better for very long copy.
- Persian text looks reversed.
Open the page in the Persian version; the card direction follows the page language. For mixed text, keep punctuation in its natural place.
Frequently asked questions
Which sizes suit social media?
For a link preview and a tweet, 1200 × 630 is the best ratio; for an Instagram post use 1080 × 1080 and for a story 1080 × 1920. The 1600 × 900 size suits slides and web banners.
Why can I not set the font size by hand?
The font size adjusts automatically. If the text still does not fit at the smallest size, shorten it or choose a taller card to enable the download.
Does Persian text render correctly?
Yes, the text direction comes from the page, so Persian is laid out right to left. Mixed Persian and English text follows the browser bidi algorithm as well.
Can I put code on the card?
Yes, spaces and line breaks are kept, so the card works for a code snippet or a terminal command. The card uses the site font, which keeps the code plain and readable.
Is the output transparent?
No, the card is filled with the full gradient and the PNG has no transparency. If you need a transparent background, use a light palette or adjust the card in your own editor.