For a Twitter/X profile photo, start with 400 × 400 pixels. For a header or banner, start with 1500 × 500 pixels. Those are X's recommended dimensions. A photo attached to a post has more flexibility: choose a landscape, square or portrait canvas that suits the content, then inspect the composer before publishing.

Use the reference below to choose a size, or open an editable canvas and build on it. Pixel dimensions describe the image's width and height. Aspect ratio describes its shape. A file-size limit in MB is a separate upload constraint.

Twitter image sizes at a glance

PlacementDimensions or shapeWhat the number means
Profile photo400 × 400 px · 1:1X recommendation; profile photo maximum is 2 MB
Header / banner1500 × 500 px · 3:1X recommendation; displayed crop can vary
Single post photoStandard ratios from 2:1 to 3:4X's documented full-display range; photos up to 5 MB
Landscape post example1200 × 675 px · 16:9Our working canvas, not a required upload size
Square post example1200 × 1200 px · 1:1Our working canvas, not a required upload size
Portrait post example1200 × 1600 px · 3:4Our working canvas, not a required upload size

The profile and header recommendations come from X's profile instructions. Its profile upload help confirms the 2 MB profile limit. The single-photo ratio range and 5 MB photo limit are in X's photo help. The three post canvases above are examples within that range.

Illustrated size reference: header 1500 by 500, profile 400 by 400 with a circle crop preview, and example landscape, square and portrait post canvases.
Illustrative geometry, not screenshots of X. The diagram does not mark a universal crop-safe area. Open the full-size diagram.

Profile photo: check the square and the small crop

Prepare a square copy with the face, logo or other important detail away from its corners. Inspect the crop shown by your account, then check the small avatar beside a post or reply. A full wordmark that looks clear at 400 pixels may become hard to recognize at that smaller size. A simpler mark or closer portrait can work better.

Go to your profile, choose Edit profile, select the photo's camera control, upload the copy and save. X documents JPG, GIF and PNG for profile and header photos, and excludes animated GIFs for those placements. A static GIF is different from an animation.

Keep a better original if you have one. Enlarging a tiny logo to 400 × 400 pixels changes the dimensions without restoring missing detail.

Header: compose for the crop, not just the canvas

Use the 1500 × 500 canvas as the starting layout. Keep the central message simple, leave space around important details and inspect where the avatar overlaps your design. Put essential contact information in profile text too, so it remains available when a crop changes.

X warns that different monitors and browsers can crop a header, including a possible 60 pixels at the top and bottom. That warning does not define a guaranteed safe rectangle. Inspect the saved profile on a phone, a wide browser and a narrower browser window.

Worked example: turn a 1600 × 900 photo into a header

This is an illustrative editing example. Suppose your source photograph is 1600 × 900 pixels and the person near its top edge must remain visible. A 1500 × 500 header has a wider shape. Stretching the photograph to fill it would distort the person. Choose between these two treatments:

  • Crop to fill: at the original width, a 3:1 crop is 1600 × 533.33 pixels. A centered crop removes about 183.33 pixels from each of the top and bottom edges. Move the crop if needed, then resize to 1500 × 500. If the crop cuts off the person, choose another treatment.
  • Fit with a background: scale the whole photograph to 500 pixels high. It becomes about 888.89 pixels wide. Center it on the 1500 × 500 canvas, leaving about 305.56 pixels of background on each side. Match the background to the design rather than stretching the photo.

Your editor may round those working values. Check that the final exported file is exactly 1500 × 500 pixels and that the subject still looks natural. Then check X's actual saved crop; the arithmetic only prepares the canvas.

Post photos: choose the shape for the information

X's single-photo guidance describes full display for standard ratios between 2:1 and 3:4. That includes 16:9, square and 3:4 compositions. A 1200 × 675 landscape canvas is useful for a wide scene. A square can suit one compact graphic. A portrait canvas can fit a taller composition. None is a universal best size for every post.

Keep the proportions locked when resizing. If your source and destination have different shapes, crop, add a background or redesign the layout. Do not squeeze a tall screenshot into a wide rectangle. For a text graphic, check that the main words remain readable when the image is displayed at a phone-sized width.

You can attach up to four photos, according to X's photo help. Several images have a different preview problem from a single photo: inspect every tile and the order of the set. The mobile instructions describe holding and dragging selected photos to reorder them. Do not treat a grid cell's displayed size as the required dimensions of its original image. Check the expanded images as well.

Open an editable image canvas

These SVG files contain an Artwork group and a separate Guides — remove before export group. They are simple vector documents with no scripts or external images. Open a file below, save a copy, and edit it in an SVG-capable editor. If your editor cannot import SVG, create a new canvas using the listed dimensions instead.

  1. Add your own photo or design to the Artwork group. Keep the canvas dimensions unchanged.
  2. Delete the Guides group, including its labels, border and any crop illustration.
  3. Export a PNG or JPEG at the canvas's pixel dimensions. Keep the editable SVG separately.
  4. Open the exported file and check its dimensions, file size and appearance before attaching it.

The SVG is an editing source, not the file to upload to X. Its photo help lists GIF, JPEG and PNG as accepted formats. Use the current upload control's error message if a file is rejected.

A link preview needs a different check

A website preview comes from the linked page and its metadata. It is not the same as attaching a photo. Changing an attached image's dimensions will not repair a missing card or a crawler that cannot fetch the website. Use the Twitter card troubleshooting guide for that workflow. Advertising formats also have their own specifications; use the selected ad format's current requirements.

Messages and video previews

In a message, confirm that the recipient can open the picture; a small thumbnail does not tell you the original's dimensions or quality. For a video, inspect the actual preview frame and playback. A photo canvas is not a specification for a video upload, its poster or an advertisement.

Check the exported file and the result on X

  1. Locally: confirm width, height, format and file size. View the export at normal size, then at a smaller display width. Check faces, text and edges.
  2. In the composer or profile editor: confirm the selected file, framing and any multi-photo order. Add an accurate image description where the photo controls support it. Put essential information in readable post text too.
  3. After saving or posting: inspect the actual placement. For an attached photo, open the expanded image as well as the feed preview. If something is cut off, revise the composition; if it is soft, compare the export with the expanded image before changing dimensions again.

Keep the original and editable design so a correction does not require rebuilding from a compressed copy. Renaming an extension does not convert a file, and a chosen width does not guarantee that X will leave its pixels unchanged.

Questions that change the size choice

Is 1200 × 675 required for every Twitter image? No. It is a 16:9 post design example. Profile and header placements have separate recommendations, and single post photos support other standard shapes.

Will a 1500 × 500 header always show every pixel? No. Use that recommended canvas and inspect the saved crop on the devices that matter to you.

Do I need a bigger file if the image looks wrong? First distinguish missing content from unclear detail. A larger export will not restore a subject removed by a crop. Return to the source and fix the composition or export stage that caused the problem.

Specification notes

Official X help checked November 23, 2026. The diagrams and canvases are original illustrations. They show dimensions and editing choices, not live X screenshots or measured upload results. Final appearance still needs a check in your own placement.