X recommends 400 × 400 pixels
X Help recommends a 400 × 400 pixel profile image and allows JPEG, GIF and PNG files up to 2 MB. Those are profile-photo specifications; the header uses different dimensions.
Source: X Help: profile photo upload issues, checked 8 November 2026.
The editor export is a separate setting
This tool exports square PNGs at 1024, 2048 or 4096 pixels; it does not currently export a 400-pixel file. A larger output is not automatically better. Inspect its file size before uploading to X. If you need exactly 400 × 400 pixels or a smaller file, resize or convert the export with an image editor.
Keep the avatar distinct from the header
Choose a face or mark that reads against the surrounding interface without relying on the header image to explain it. Avoid tiny slogans and details in the square corners. For a person-led account, a clear face can be easier to recognise than a whole scene.
Use the cross-platform size guide to separate upload rules from display sizes.