Compress to KB topic guide

Compress images for Slack: byte size and inline preview limits

Direct answer

When you attach still images to a Slack message or channel, Slack Help Center — Add files to Slack publishes both a hard upload size and separate rules for whether the image shows as an inline preview in the thread. You can add files up to 1 GB in size, but for images the preview displays inline only if the image is smaller than 25,000 pixels on the longest side and less than 45 million pixels total. Phone camera exports often pass the 1 GB ceiling yet still miss inline preview or slow uploads — compress and resize before you drag files into the message field. This page is byte and megapixel prep for Slack message attachments — not Discord’s 20 MB free chat cap, Mastodon’s 16 MB post attachments, or Gmail and Outlook.com email attachment totals.

Try the Compress to KB

What this workflow handles

Slack’s published 1 GB per-file ceiling is rarely the practical blocker for everyday chat photos; slow uploads and missing inline previews when dimensions exceed Slack’s preview rows are the usual pain. Slack Help — Add files to Slack: files up to 1 GB; on desktop you can drag and drop up to 10 files into the message field (or use the plus icon to choose files); Slack includes a preview of a file as part of the message, and if you share an image the preview displays inline only when it is smaller than 25,000 pixels on the longest side and less than 45 million pixels total. Microsoft Office files larger than 50 MB will not display a preview — out of scope for this still-image guide except as a reminder that Slack applies preview rules beyond raw byte size. Slack scans uploaded files for viruses and malware per the same Help article; treat that as platform hygiene, not a substitute for compressing oversized exports before you send them. 1 GB equals 1024 × 1024 = 1048576 KB — that is Slack’s documented byte ceiling, not a practical chat-photo target. Editorial comfort zones such as roughly 2048–5120 KB (about 2–5 MB) sit well under the 1 GB cap and usually upload faster while staying readable in thread width; label those as practical targets, not Slack-published byte caps. Quality-sweep at current dimensions first in Compress to KB; downscale when total megapixels approach 45 million or the longest side approaches 25,000 px, or when the quality floor still exceeds your chosen KB budget. compress-image-for-discord covers Discord Support 20 MB free per-file chat attachments. compress-image-for-mastodon covers Mastodon 16 MB post attachment images with 8.3 MP downscaling. compress-image-for-email covers Gmail and Outlook.com message attachment totals. web.dev’s compress-images guide recommends experimenting with quality rather than assuming one universal setting. Beita’s Compress to KB uses a temporary analysis upload with no long-term storage; see the Privacy Policy for retention details. Profile photo uploads in Slack are a separate Help article and out of scope here.

Use Compress to KB with a practical target such as 2048–5120 KB for everyday Slack photos (always under Slack’s 1048576 KB / 1 GB ceiling) and downscale when longest-side or 45 MP preview rules are at risk before you attach still images to a message. For Discord’s 20 MB chat attachment cap, see Compress image for Discord. For Mastodon’s 16 MB post attachment limit, see Compress image for Mastodon.

How to use it

  1. Open Slack Help — Add files to Slack; note the 1 GB file-size cap, desktop drag-and-drop of up to 10 files, and inline image preview rules (longest side under 25,000 px, total under 45 million pixels).
  2. Measure pixel width, height, and total megapixels — downscale when the source exceeds Slack’s inline preview rows even if bytes look fine under 1 GB.
  3. Pick JPEG for photographs and PNG when you need sharp UI text; either must fit your chosen KB budget and preview pixels.
  4. Enter a practical Compress to KB target (for example 2048–5120 KB for everyday chat photos, always under 1048576 KB), quality-sweep at current dimensions first, and downscale if megapixels or the quality floor still exceed your goals.
  5. Attach via drag-and-drop or the plus icon in the message field; confirm the inline preview appears as expected in the thread.
  6. If preview is missing or upload is slow, re-check longest-side and 45 MP totals before retrying.

Frequently asked questions

What file size limit does Slack publish for message attachments?

Slack Help Center — Add files to Slack states you can add files up to 1 GB in size. That equals 1024 × 1024 = 1048576 KB as a documented ceiling — not a target for everyday photos. Compress to a practical KB budget under that cap before you upload.

When will Slack show an inline preview for an attached image?

The same Add files to Slack article explains that Slack includes a preview as part of the message. If you share an image, the preview displays inline only if it is smaller than 25,000 pixels on the longest side and less than 45 million pixels total. Downscale or compress before upload when your export exceeds those pixel rows even if the file is far under 1 GB.

How many files can I attach at once in Slack on desktop?

Slack Help — Add files to Slack notes that on desktop you can drag and drop up to 10 files into the message field, or click the plus icon beside the message field and choose files. Each file still needs to meet Slack’s size and preview rules independently.

What KB target should I use in Compress to KB for Slack photos?

Start from Slack’s 1 GB = 1048576 KB ceiling only as an upper bound. For typical channel photos, practical targets around 2048–5120 KB (about 2–5 MB) upload faster and stay under the 1 GB cap with headroom. Quality-sweep first at the current dimensions; downscale when megapixels or longest-side pixels threaten inline preview rules, or when the quality floor still exceeds your budget.

Do Microsoft Office attachment sizes affect this image guide?

Only as context. Slack Help states Microsoft Office files larger than 50 MB will not display a preview. This page focuses on still-image prep for message attachments, not Office document workflows.

How is Slack’s 1 GB cap different from Discord 20 MB, Mastodon 16 MB, or email attachment limits?

Different products and numbers. Discord Support documents 20 MB per free chat attachment — see compress-image-for-discord. Mastodon user docs describe 16 MB still-image post attachments with 8.3 MP downscaling — see compress-image-for-mastodon. compress-image-for-email covers Gmail and Outlook.com 25 MB message attachment totals. Slack Help publishes 1 GB uploads with separate inline image preview pixel rules (25,000 px longest side, 45 million pixels total) — this page. compress-image-for-ebay covers eBay Help listing photos at 12 MB each with 500×500 minimum resolution and ~1600×1600 recommendation — seller listing upload prep, not chat attachments. Same Compress to KB tool; different destination rules.

Does Slack scan uploaded files?

Slack Help — Add files to Slack notes that files are scanned for viruses and malware. That is platform security hygiene; compressing large photos before upload still helps upload speed and inline preview eligibility.

Does this page cover Slack profile photos?

No. Profile photo uploads follow a separate Slack Help workflow and are out of scope for message attachment prep on this page.

Sources

Explore the compress to kb topic cluster

This guide covers Slack message attachment file size and inline image preview limits before upload. Related guides cover general KB budgets, email, WhatsApp, LinkedIn share photos, Instagram Graph JPEG caps, Twitter / X still-image caps, Threads API image posts, Bluesky post embeds, TikTok Content Posting API photo transfer, Shopify admin image uploads, Mastodon post attachments, Notion inline image caps, WordPress Media Library caps, Facebook Help photo uploads, Pinterest web Image Pins, YouTube custom thumbnails, Discord chat attachments, and the Compress to KB tool.

Related guides

All compress to kb guides