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.
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
- 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).
- 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.
- Pick JPEG for photographs and PNG when you need sharp UI text; either must fit your chosen KB budget and preview pixels.
- 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.
- Attach via drag-and-drop or the plus icon in the message field; confirm the inline preview appears as expected in the thread.
- 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
- Slack Help Center — Add files to Slack: https://slack.com/help/articles/201330736-Add-files-to-Slack — Files up to 1 GB; desktop drag-and-drop up to 10 files; inline image preview when longest side under 25,000 px and under 45 million pixels total; Office files over 50 MB skip preview; virus/malware scanning.
- web.dev — Compress images: https://web.dev/articles/compress-images — Experiment with quality settings; there is no one universal compression setting.
- Pillow — Image.save (JPEG quality, optimize): https://pillow.readthedocs.io/en/stable/handbook/image-file-formats.html#jpeg — JPEG quality and optimize parameters used in the quality sweep behind Compress to KB.
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
-
Compress image to KB
General hard byte-budget workflow for forms and marketplaces.
-
Compress images for email
Gmail and Outlook.com 25 MB attachment caps.
-
Compress images for WhatsApp
Meta Cloud API 5 MB JPEG/PNG image-message cap.
-
Compress images for GitHub
GitHub Docs 10 MB cap for images and GIFs on issues and pull requests.
-
Compress images for Discord
Discord Support 20 MB free per-file upload cap.
-
Compress images for Telegram bots
Telegram Bot API sendPhoto 10 MB cap for inline bot photos.
-
Compress images for LinkedIn posts
LinkedIn Help 5 MB cap for share-box photo uploads.
-
Compress images for Instagram
Instagram Graph API 8 MB JPEG cap for feed, Story, and Reels cover.
-
Compress images for Twitter / X
X API 5 MB still-image cap for Posts and DMs (animated GIF 15 MB).
-
Compress images for Notion
Notion Help 5 MB cap for inline PNG/JPG display (all plans).
-
Compress images for WordPress
WordPress Media Library 2560 px big-image threshold and PHP upload_max_filesize limits.
-
Compress images for Facebook
Meta Help Center 15 MB photo uploads; keep PNG under 1 MB to avoid pixelation.
-
Compress images for Pinterest
Pinterest Help 20 MB web Image Pin max; BMP, JPEG, PNG, TIFF, WEBP.
-
Compress images for YouTube
YouTube Help custom thumbnails: 50 MB on desktop; 50 MB mobile video, 10 MB mobile podcasts; JPG or PNG.
-
Compress images for Threads
Threads API image posts: 8 MB max JPEG or PNG; width 320–1440 px, aspect ratio up to 10:1.
-
Compress images for Bluesky
Bluesky post embeds: 2 MB max per image blob (image/*); up to 4 images; alt text required.
-
Compress images for TikTok
TikTok Content Posting API: 20 MB max WebP/JPEG per image; 1080p picture-size ceiling.
-
Compress images for Shopify
Shopify Help 20 MB product/collection and Files image uploads with megapixel rows.
-
Compress images for Mastodon
Mastodon post attachments: 16 MB max still images; 8.3 MP downscale; up to 4 images per post.
-
Compress images for eBay listings
eBay Help 12 MB per listing photo; 500×500 minimum and ~1600×1600 recommendation.
-
Compress to KB tool
Set a KB target and download a file under budget.
All compress to kb guides
- Compress image to KB: hit a hard file-size limit
- Compress images for email: hit Gmail and Outlook attachment caps
- Compress images for WhatsApp: hit the 5 MB image message cap
- Compress images for GitHub: hit the 10 MB image and GIF cap
- Compress images for Discord: hit the 20 MB free upload cap
- Compress images for Telegram bots: hit the sendPhoto 10 MB cap
- Compress images for LinkedIn posts: hit the 5 MB photo share limit
- Compress images for Instagram: hit the 8 MB JPEG upload limit
- Compress images for Twitter / X: hit the 5 MB image upload limit
- Compress images for Notion: stay under the 5 MB inline limit
- Compress images for WordPress: Media Library size and big-image rules
- Compress images for Facebook: file size and format before upload
- Compress images for Pinterest: hit the 20 MB web Image Pin cap
- Compress images for YouTube: custom thumbnail file-size limits
- Compress images for Threads: hit the 8 MB image post limit
- Compress images for Bluesky: hit the 2 MB post embed limit
- Compress images for TikTok: hit the 20 MB photo upload limit
- Compress images for Shopify: hit the 20 MB and megapixel upload limits
- Compress images for Mastodon: hit the 16 MB post attachment limit
- Compress images for eBay: hit the 12 MB listing photo limit
- Compress images for Etsy: stay under the 1 MB upload reliability tip
- Compress images for Medium: hit the 25 MB story-editor limit
- Compress images for Google Business Profile: fit 10 KB–5 MB photo rules
- Compress images for Wix: Media Manager limits and practical upload ceilings
- Compress images for Webflow: 4 MB Assets limits and upload prep
- Compress images for Squarespace: 20 MB cap and 500 KB performance recommendation
- Compress images for Ghost: Ghost(Pro) plan caps (5 MB–1 GB) and self-hosted 50 MB nginx default
- Compress images for Gumroad: 50 MB cover limit and thumbnail prep
- Compress images for beehiiv: 5 MB newsletter uploads, 1200×630 thumbnails, and 10 MB community posts
- Compress images for Mailchimp: 1 MB Content Studio uploads, 1024 KB targets, and legacy vs new builder widths
- Compress images for Kit: smaller-than-25 MB gallery, form/LP sizes, and email look-best width
- Compress images for Klaviyo: 10 MB email ceiling, 1024 KB load targets, form 5120 KB, and full-width dimensions
- Compress images for MailerLite: 10 MB File manager, 1024 KB campaign prep, GIF 4 MB, and width rules
- Compress images for Brevo: 5 MB Content library, layout widths, and HTML/attachment contrast
- Compress images for Substack: official sizes, PNG email banners, and dimension-first prep
- Compress images for Google Ads: 5120 KB JPG/PNG assets, aspect ratios, and surface-specific rows