Twitter, now branded as X, converts every uploaded image to JPEG and applies its own compression as part of media processing, which can noticeably degrade photo quality especially when the source file is large.
Loading Image Compressor…
Pre-empt Twitter's JPEG conversion
Stay under Twitter's 5MB upload limit
Recommended: 1200x675px for tweet images
No watermark on downloads
Drop the Image Compressor into any page — blog post, product docs, intranet, school portal — with a single line of HTML. Your visitors get the full tool, processed entirely in their browser. No backend, no uploads, no signup.
Embed code
<iframe
src="https://www.fixtools.io/image-tools/image-compressor?embed=1"
width="100%"
height="780"
frameborder="0"
style="border:0;border-radius:16px;max-width:900px;"
title="Image Compressor by FixTools"
loading="lazy"
allow="clipboard-write"
></iframe>Attribution-friendly: a small "Powered by FixTools" link appears in the embed footer.
Twitter converts every uploaded image to JPEG as part of its media processing pipeline regardless of the format you upload. A PNG file uploaded to Twitter is converted to JPEG during processing. A HEIC file is converted to JPEG. Even an existing JPEG is re-encoded through Twitter's own JPEG compressor, which applies quality settings calibrated for Twitter's bandwidth and storage costs rather than for image quality preservation. The result of Twitter's conversion is a JPEG at approximately 85 to 90 percent quality for images well under 1 megabyte, and more aggressive compression at 70 to 80 percent quality equivalent for larger files. Twitter's compression is more aggressive for images with small dimensions combined with complex content, and less aggressive for large-dimension images with high-quality source material that match Twitter's display targets.
The 5 megabyte upload limit for photos on Twitter as of 2024, with PNGs up to 5 megabytes and GIFs up to 15 megabytes, creates a practical ceiling, but most users hit quality problems well below this limit. A 4 megabyte full-resolution photo receives more aggressive Twitter compression than an 800 kilobyte pre-compressed photo because Twitter's pipeline targets a specific output file size range for feed display. By pre-compressing to 85 percent quality at 1200x675 pixels, producing a file of approximately 250 to 400 kilobytes, you give Twitter a source that is already near its target output range. Twitter's compression pass on a 300 kilobyte source is much lighter than its pass on a 4 megabyte source, resulting in a noticeably sharper final displayed image.
The 1200x675 pixel dimension at 16 to 9 ratio is the optimal single-image tweet dimension because it matches the feed display size exactly. Twitter displays single tweet images at 1200 pixels wide on desktop with responsive scaling on mobile. Uploading at exactly 1200x675 pixels eliminates any resize step from Twitter's processing pipeline. Images at other aspect ratios are cropped in the feed preview, with Twitter showing a 16 to 9 crop in the timeline and revealing the full image only when clicked. Square images at 1 to 1 ratio and portrait images at 4 to 5 ratio are also well-supported but show smaller previews in the desktop timeline. For maximum visual impact in the feed where most users only see the preview, 1200x675 pixels at 16 to 9 is the recommended format.
A practical consideration that often catches users off guard is that Twitter's compression is applied to the displayed image, not to the original you uploaded. Even if you upload a perfect file, what your followers see is Twitter's compressed version. The only way to influence that outcome is to give Twitter a source that produces the best possible compression result, which means correct dimensions, correct format, and moderate file size that lands within Twitter's lightest-compression band. Pre-compression is not about preserving your original file inside Twitter; it is about steering Twitter's pipeline toward the best possible output.
Step-by-step guide to compress image for twitter / x:
Resize to Twitter dimensions
Use the Image Resizer to set your image to 1200x675 pixels, which is the 16 to 9 ratio used for single tweet images in the desktop feed. Matching these dimensions exactly eliminates Twitter's resize step from the pipeline and preserves more detail in the final displayed image.
Convert to JPG if needed
Twitter converts all uploaded images to JPEG during processing. Use the Format Converter to convert PNG to JPG yourself first at 85 to 88 percent quality, avoiding the double-conversion artifacts that occur when Twitter does the PNG-to-JPEG conversion in its own pipeline with aggressive settings.
Compress to 85% quality
Upload the JPG to the Image Compressor, set quality to 85 percent, and download. This produces a clean source for Twitter's processing that is small enough to receive Twitter's lightest compression pass rather than its most aggressive one.
Upload to Twitter/X
Attach the compressed image to your tweet through the desktop website at twitter.com or x.com for best results. It should display sharply in the feed without further visible quality loss compared to your pre-compressed source.
Common situations where this approach makes a real difference:
Journalist
A news journalist tweets breaking news photos directly from the field where speed matters as much as quality. Original phone photos are 7 to 9 megabytes. After compressing to 85 percent quality at 1200x675 pixels, producing 280 to 350 kilobyte files in Chrome on an Android phone, images attach to tweets without triggering Twitter's heaviest recompression band. Followers report that detail and text in the photos are readable, unlike the journalist's previous direct-upload photos which became too blurry to read on phones.
Brand social media manager
A consumer brand's social media team posts product campaign images daily on Twitter. Agency-supplied JPEGs are 3 to 5 megabytes at 3000x1688 pixels. After establishing a workflow of resizing to 1200x675 pixels and compressing to 85 percent in FixTools before scheduling in Buffer, every tweet image displays with consistent sharpness across the campaign. The brand's engagement rate on image tweets improves 18 percent compared to their previous direct-upload workflow that left images visibly degraded in the feed.
Sports photographer
A sports photographer tweets action shots from events while still in the venue. Original 24 megapixel JPEG files are 8 to 12 megabytes. After compressing to 85 percent quality at 1200x675 pixels, producing 290 to 420 kilobyte files, images attach quickly from the phone and display with sharp athlete detail in the feed. The pre-compression step takes 40 seconds per image in Safari, which fits within the photographer's two-minute post-deadline workflow between plays.
Infographic creator
A data journalist creates statistical infographics as PNG files at 1200x675 pixels weighing 2 to 4 megabytes each. After converting PNG to JPEG at 88 percent quality, which preserves text legibility, before uploading to Twitter, the infographics display with readable text in the feed. Converting PNG to JPEG before Twitter's own PNG-to-JPEG conversion eliminates the double-conversion artifact that previously made small-font text in the infographic blurry and undermined the entire point of sharing the chart.
Get better results with these expert suggestions:
Convert PNG to JPEG before uploading to avoid double-conversion
Twitter converts all PNG uploads to JPEG during processing. A PNG-to-JPEG conversion at Twitter's quality settings can introduce significant artifacts, especially on images with smooth gradients and fine text. Converting PNG to JPEG yourself at 85 to 88 percent quality using the Format Converter means Twitter receives a JPEG source and does not perform a PNG-to-JPEG conversion itself. Only Twitter's standard JPEG compression pass applies, not the format-change conversion that compounds artifacts.
Upload pre-compressed images under 1MB for the lightest Twitter processing
Twitter's compression is progressively more aggressive for larger source files. An image under 1 megabyte receives a lighter compression pass than a 4 megabyte image. By pre-compressing to 85 percent quality at 1200x675 pixels, which typically produces 250 to 400 kilobyte files, you give Twitter a source that is already near its target output range, minimizing the quality degradation from Twitter's compression step and producing visibly sharper results.
Use 1200x675px for maximum desktop feed presence
Twitter crops images in the timeline to a 16 to 9 preview on desktop. An image at exactly 1200x675 pixels fills this preview completely without cropping and requires no resize from Twitter's pipeline. Images at other dimensions show a cropped preview that users must click to see in full, which reduces the chance they engage with the full composition. For brand content and news images where the full frame matters, 1200x675 pixels ensures the full image is visible at a glance.
For PNG graphics with text, use JPEG quality 88 to 90 percent to preserve text legibility
Infographics, charts, and graphics with overlaid text are sensitive to JPEG compression at the text edges. Using quality 88 to 90 percent rather than the standard 85 percent preserves text legibility through the two-step compression process of your pre-compression plus Twitter's compression. The slightly larger file size, typically 15 to 25 percent more than at 85 percent, is well within Twitter's 5 megabyte limit at 1200x675 pixels and worth the readability gain.
More use-case guides for the same tool:
Open the full Image Compressor — free, no account needed, works on any device.
Open Image Compressor →Free · No account needed · Works on any device