{"id":143,"date":"2026-08-03T08:50:15","date_gmt":"2026-08-03T08:50:15","guid":{"rendered":"https:\/\/allmediatools.com\/blog\/batch-compress-images-windows-mac-linux\/"},"modified":"2026-08-03T08:50:15","modified_gmt":"2026-08-03T08:50:15","slug":"batch-compress-images-windows-mac-linux","status":"publish","type":"post","link":"https:\/\/allmediatools.com\/blog\/batch-compress-images-windows-mac-linux\/","title":{"rendered":"How to Batch Compress Images on Windows, Mac, and Linux"},"content":{"rendered":"\n<p class=\"article-intro wp-block-paragraph\">Compressing one image at a time is fine for a single blog header or profile photo. It&#8217;s not fine when you&#8217;re staring down a folder of 200 product photos, a wedding shoot, or a batch of screenshots that all need to shrink before they go anywhere. For that, you need a tool that processes a whole folder in one pass \u2014 and the right one depends entirely on your operating system. Here&#8217;s a genuinely practical, step-by-step batch compression method for Windows, Mac, and Linux, plus an honest note on where a single-file tool like AllMediaTools Image Compressor fits into this picture (and where it doesn&#8217;t).<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Windows: PowerToys Image Resizer<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Microsoft&#8217;s free PowerToys suite includes an Image Resizer utility with a right-click context menu integration \u2014 it&#8217;s primarily a resizer, but resizing to smaller dimensions is itself one of the most effective ways to cut file size for a whole batch at once (see our piece on <a href=\"\/blog\/image-resolution-vs-file-size-explained\">why resolution isn&#8217;t the only thing driving file size<\/a> for how the two relate).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>How to use it:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Install <strong>PowerToys<\/strong> (free, from Microsoft&#8217;s GitHub releases page or the Microsoft Store).<\/li>\n\n\n\n<li>In PowerToys Settings, enable <strong>Image Resizer<\/strong>.<\/li>\n\n\n\n<li>In File Explorer, select all the images you want to process (Ctrl+A for a whole folder, or Ctrl+click for specific files).<\/li>\n\n\n\n<li>Right-click the selection \u2192 <strong>Resize pictures<\/strong>.<\/li>\n\n\n\n<li>Choose a preset (Small, Medium, Large) or set a custom target size.<\/li>\n\n\n\n<li>Click <strong>Resize<\/strong> \u2014 PowerToys creates resized copies without touching your originals.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Limitation:<\/strong> PowerToys Image Resizer changes dimensions, not JPEG\/PNG compression quality directly \u2014 it&#8217;s a resize tool with a compression side effect, not a dedicated compressor. For genuine batch compression (same dimensions, smaller file via quality\/encoding), pair it with a free batch-capable web tool like TinyPNG (up to 20 images per drag, see our <a href=\"\/blog\/best-image-compressor-tools-free-vs-paid\">comparison of the best image compressor tools<\/a>), or use the command-line method below via WSL (Windows Subsystem for Linux).<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Mac: ImageOptim (Drag-and-Drop Batch) or Automator<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Method 1: ImageOptim \u2014 Simplest Option<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>ImageOptim<\/strong> is free, open-source, and built specifically for this.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Download <strong>ImageOptim<\/strong> (imageoptim.com \u2014 free).<\/li>\n\n\n\n<li>Open the app.<\/li>\n\n\n\n<li>Select an entire folder of images in Finder and drag them all onto the ImageOptim window.<\/li>\n\n\n\n<li>ImageOptim compresses every file in place (it overwrites originals by default \u2014 duplicate the folder first if you want to keep the originals untouched).<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">There&#8217;s no file count limit and no signup \u2014 this is the most straightforward batch option on any platform.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Method 2: Automator + Preview (Built Into macOS)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For users who&#8217;d rather not install anything, macOS&#8217;s built-in <strong>Automator<\/strong> can batch-export images at a lower quality:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open <strong>Automator<\/strong> \u2192 <strong>New Document<\/strong> \u2192 <strong>Quick Action<\/strong> (or <strong>Application<\/strong>).<\/li>\n\n\n\n<li>Add the <strong>&#8220;Copy Finder Items&#8221;<\/strong> action first (so originals stay untouched), then add <strong>&#8220;Change Type of Images&#8221;<\/strong> or <strong>&#8220;Resize Image&#8221;<\/strong> actions afterward.<\/li>\n\n\n\n<li>Save the workflow.<\/li>\n\n\n\n<li>Select your images in Finder, right-click \u2192 <strong>Quick Actions<\/strong> \u2192 run your saved workflow.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">This method takes more setup than ImageOptim but works entirely with tools already on your Mac.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Linux: ImageMagick&#8217;s mogrify (Command Line) or Trimage (GUI)<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Method 1: mogrify \u2014 Fastest for Anyone Comfortable with a Terminal<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">ImageMagick&#8217;s <code>mogrify<\/code> command is the standard Linux (and cross-platform) way to batch-process images from the command line, and it&#8217;s genuinely a one-liner:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Install ImageMagick first if you don't have it\nsudo apt install imagemagick   # Debian\/Ubuntu\nsudo dnf install ImageMagick   # Fedora\n\n# Compress every JPG in the current folder to 75% quality, in place\nmogrify -quality 75 *.jpg\n\n# Safer: write to a separate output folder instead of overwriting originals\nmkdir compressed\nmogrify -quality 75 -path compressed *.jpg<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This processes every matching file in the folder in seconds, with full control over the quality level via <code>-quality<\/code>. It works on Windows and Mac too if you install ImageMagick there \u2014 it&#8217;s not Linux-exclusive, just most at-home in a Linux terminal workflow.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Method 2: Trimage \u2014 GUI Option, No Terminal Needed<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Trimage<\/strong> is a free, open-source GUI batch compressor built for Linux desktops (available via most distros&#8217; package managers, e.g., <code>sudo apt install trimage<\/code>).<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Install Trimage from your distro&#8217;s package manager.<\/li>\n\n\n\n<li>Open the app.<\/li>\n\n\n\n<li>Drag a whole folder of images into the window.<\/li>\n\n\n\n<li>Trimage compresses all of them losslessly (or with a lossy option enabled in settings) and shows the size savings per file.<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Comparison at a Glance<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Platform<\/th><th>Tool<\/th><th>Cost<\/th><th>True batch compression?<\/th><th>Install required<\/th><\/tr><\/thead><tbody><tr><td>Windows<\/td><td>PowerToys Image Resizer<\/td><td>Free<\/td><td>Resize-driven, not direct quality compression<\/td><td>Yes<\/td><\/tr><tr><td>Windows\/Mac\/Linux<\/td><td>TinyPNG (web)<\/td><td>Free (20\/mo quota)<\/td><td>Yes, up to 20 at once<\/td><td>No<\/td><\/tr><tr><td>Mac<\/td><td>ImageOptim<\/td><td>Free<\/td><td>Yes, unlimited<\/td><td>Yes<\/td><\/tr><tr><td>Mac<\/td><td>Automator + Preview<\/td><td>Free (built-in)<\/td><td>Yes, with setup<\/td><td>No (built-in)<\/td><\/tr><tr><td>Linux\/any (via terminal)<\/td><td>ImageMagick mogrify<\/td><td>Free<\/td><td>Yes, unlimited, full quality control<\/td><td>Yes<\/td><\/tr><tr><td>Linux<\/td><td>Trimage<\/td><td>Free<\/td><td>Yes, unlimited<\/td><td>Yes<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Where AllMediaTools Fits (and Where It Doesn&#8217;t)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To be direct about it: <strong>AllMediaTools Image Compressor is a single-file tool today<\/strong> \u2014 there&#8217;s no multi-file upload queue, so it isn&#8217;t the right choice for compressing a folder of 50 or 200 images in one sitting. If that&#8217;s your task, use one of the OS-specific batch methods above instead.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Where it genuinely is the better choice is the opposite scenario: you have <strong>one<\/strong> image right now \u2014 a single product photo, a single screenshot, a single header image \u2014 and you don&#8217;t want to install anything or learn a command-line tool for a 10-second job. For that specific case, <a href=\"https:\/\/allmediatools.com\/image-compressor\">AllMediaTools Image Compressor<\/a> is free, requires no signup, and gets you a compressed file faster than opening any of the batch tools above would for just one file. See our guide on <a href=\"\/blog\/how-to-compress-images-without-losing-quality\">compressing images without losing quality<\/a> for recommended quality settings either way.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">What to Do Next<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>If you have one image to compress right now<\/strong>, use <a href=\"https:\/\/allmediatools.com\/image-compressor\">AllMediaTools Image Compressor<\/a> \u2014 no install, no batch setup needed for a single file.<\/li>\n\n\n\n<li><strong>If you have a whole folder to process<\/strong>, pick the method above for your OS \u2014 ImageOptim (Mac), PowerToys + a batch web tool (Windows), or mogrify\/Trimage (Linux).<\/li>\n\n\n\n<li><strong>If you&#8217;re unsure which compression quality setting to use for the batch<\/strong>, our <a href=\"\/blog\/how-to-compress-images-without-losing-quality\">compress images without losing quality<\/a> guide covers the quality range that stays visually lossless across formats.<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/allmediatools.com\/image-compressor\">Compress Your Image Free \u2192<\/a><\/div>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently Asked Questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">What&#8217;s the fastest way to batch compress images on Windows?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For pure resizing, PowerToys Image Resizer&#8217;s right-click integration is the fastest built-in option. For actual quality-based compression at scale, pairing it with a free web batch tool (like TinyPNG, up to 20 images per upload) or installing ImageMagick and using mogrify from the command line gives more direct control.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I batch compress images without installing any software?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes \u2014 TinyPNG&#8217;s web interface lets you drag up to 20 images at once without installing anything, bounded by its free 20-image-per-month quota. For unlimited batch compression with no install, that&#8217;s harder to find; most free unlimited batch tools (ImageOptim, Trimage, ImageMagick) do require a one-time install.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Does batch compression reduce quality more than compressing one at a time?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No \u2014 the compression algorithm applies the same way whether you process one file or a hundred; batch tools simply repeat the same single-file operation across every file you select. Quality outcome depends on the quality\/compression setting you choose, not on whether it&#8217;s done individually or in bulk.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Is ImageMagick safe to use on my original files?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">mogrify overwrites files in place by default, which can be risky if you make a mistake with the quality setting. Always use the -path flag to write to a separate output folder (as shown above) until you&#8217;re confident in your command, or keep a backup of the originals first.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Does AllMediaTools support batch\/multiple file uploads?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Not currently \u2014 it&#8217;s a single-file tool, one image in, one compressed image out. For batch jobs, use one of the OS-specific tools in this guide (ImageOptim on Mac, PowerToys\/TinyPNG on Windows, mogrify\/Trimage on Linux) instead.<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>Compressing one image at a time is fine for a single blog header or profile photo. It&#8217;s not fine when you&#8217;re staring down a folder of 200 product photos, a wedding shoot, or a batch of screenshots that all need to shrink before they go anywhere. For that, you need a tool that processes a &#8230; <a title=\"How to Batch Compress Images on Windows, Mac, and Linux\" class=\"read-more\" href=\"https:\/\/allmediatools.com\/blog\/batch-compress-images-windows-mac-linux\/\" aria-label=\"Read more about How to Batch Compress Images on Windows, Mac, and Linux\">Read more<\/a><\/p>\n","protected":false},"author":0,"featured_media":144,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[16],"tags":[311,313,312,315,314],"class_list":["post-143","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-image-optimization","tag-batch-compress-images","tag-batch-compress-mac","tag-batch-image-compression-windows","tag-compress-multiple-images-at-once","tag-imagemagick-mogrify-compress"],"jetpack_featured_media_url":"https:\/\/allmediatools.com\/blog\/wp-content\/uploads\/2026\/08\/seo-publish-batch-compress-images-windows-mac-linux.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/allmediatools.com\/blog\/wp-json\/wp\/v2\/posts\/143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/allmediatools.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/allmediatools.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/allmediatools.com\/blog\/wp-json\/wp\/v2\/comments?post=143"}],"version-history":[{"count":0,"href":"https:\/\/allmediatools.com\/blog\/wp-json\/wp\/v2\/posts\/143\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/allmediatools.com\/blog\/wp-json\/wp\/v2\/media\/144"}],"wp:attachment":[{"href":"https:\/\/allmediatools.com\/blog\/wp-json\/wp\/v2\/media?parent=143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/allmediatools.com\/blog\/wp-json\/wp\/v2\/categories?post=143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/allmediatools.com\/blog\/wp-json\/wp\/v2\/tags?post=143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}