Step by step, measured
Add white bars to a photo for Instagram without cropping it

Short answer
Pad the photo onto a canvas that sits inside the range Instagram keeps uncropped, which its Help gives as 1.91:1 to 3:4 (1080 pixels wide, 566 to 1440 high). Scale the photo to fit inside the canvas and fill the rest with white. A 3776 × 5632 portrait fits 1080 × 1440 with bars of 57 and 58 px left and right, and a 3040 × 864 panorama fits 1080 × 566 with bars of 129 and 130 px top and bottom. Of the Koldflux tools we found none that makes the padded file: the free calculator gives the numbers, and a script on this page makes the file. A photo already inside that range should not be cropped by the Help rule; that was not tested on Instagram.
Work out bar size and scaled photo size for a canvas (free, in your browser)
Key takeaways
- Instagram Help keeps a photo as it is when its ratio is between 1.91:1 and 3:4, and says a photo outside that range "will be cropped to fit a supported ratio". Pad to a canvas inside the range.
- Of four CC0 test photos, two are outside the range by that rule: a 3.52:1 panorama and a 0.67 portrait. The 3:2 and 16:9 photos are inside by our reading of the rule and should need no bars; the Help states the rule for photos 320 to 1080 px wide, and this was not tested on Instagram.
- A 1080 × 1920 canvas is 0.56, outside the feed range. For a feed post, pad to 1080 × 1440, 1080 × 1350 or 1080 × 1080 instead. Whether Stories crop was not tested.
- The Koldflux letterbox calculator matched an ffmpeg pad on 20 of 20 photo and canvas pairs. When the leftover is an odd number of pixels, the two bars differ by 1 px.
- The padded files kept the whole photo: similarity to the scaled original read 1.0000 on all 20, and 0.19 to 0.62 on a copy with 10% cut from each edge.
Do you need bars at all?
You have a tall portrait or a wide panorama, and Instagram keeps cutting off the part you care about. Before you add anything, check the ratio, because bars are only needed for a shape Instagram would crop.
The Instagram Help article "Image resolution of photos you share" was opened in a browser on November 25, 2026 and its text saved. It says: "we keep that photo at its original resolution as long as the photo's aspect ratio is between 1.91:1 and 3:4 (a width of 1080 pixels with a height between 566 and 1440 pixels)." And: "If the aspect ratio of your photo isn't supported, it will be cropped to fit a supported ratio."
Divide the width by the height and compare with 0.75 (3:4) and 1.91. We did that for four photos from Wikimedia Commons, all CC0, with a script (ratios.py, in the log).
| Photo | Pixels | Width ÷ height | By our reading of the Help rule |
|---|---|---|---|
| 3:2 landscape | 2048 × 1365 | 1.5004 | inside, no bars expected |
| 16:9 landscape | 2688 × 1512 | 1.7778 | inside, no bars expected |
| Panorama | 3040 × 864 | 3.5185 | outside, wider than 1.91:1 |
| 2:3 portrait | 3776 × 5632 | 0.6705 | outside, taller than 3:4 |
The Help states the range for photos with a width between 320 and 1080 pixels, and says larger photos are sized down to a width of 1080. These originals are 2048 to 3776 px wide, so applying the ratio range to them is our reading, not something the Help says outright. So the panorama and the 2:3 portrait are the two worth padding. The other two are in the table for a different reason: they are the controls for the arithmetic below, padded into canvases they did not need.
This is the rule as Instagram states it. No Instagram account or upload was used, so no screen of the app was checked against it.
Step 1: work out the bar size before you open an editor
Use the Koldflux letterbox and pillarbox calculator. It runs in your browser, so the numbers you type stay on your device. It does not touch a photo: it tells you the numbers to type into an editor.
- Open the calculator and type the photo's width and height under "Source width" and "Source height".
- Type the canvas under "Target canvas width" and "Target canvas height", for example 1080 and 1440.
- Read four lines: the bar type, the scaled content size, the bar thickness and how much of the canvas the photo covers.
- In your editor, set the canvas to the target size, place the photo at the scaled size, centred, and fill the background white.
Controls first. The calculator's own example is a 1920 × 1080 source on a 1080 × 1920 canvas, and it says 1080 × 608, bars of 656 px, covering 31.6%. A solid red 1920 × 1080 image padded to 1080 × 1920 measured 656 px top and bottom. The same image into 1920 × 1080 left no bars at all, and an all-white image was reported by the scanner as having no content.
Then the 20 pairs. In all 20 the calculator and the padded file agreed on the scaled size, on which sides carry the bars and on the covered share within 0.15 percentage points. The bar thickness agreed to within 1 px: the calculator rounds each number on its own, so when the leftover is odd it shows one number and the file has bars of, say, 386 and 387.
Free tool:Work out bar size and scaled photo size for a canvas (free, in your browser)

Step 2: which canvas size to pad to
One inside the range, and as close to the photo's own shape as you can get, because that is what makes the photo big and the bars thin. Fitting scales the photo until it touches two sides of the canvas: scale is the smaller of canvas width ÷ photo width and canvas height ÷ photo height, and each bar is half of what is left over.
The table gives the result for the four photos from the live calculator and from the ffmpeg files, with the bar size of each file measured by scanning its pixels. The last column is how much of the canvas the photo covers.
| Photo | Canvas | Photo scaled to | Bars | Photo covers |
|---|---|---|---|---|
| 2:3 portrait | 1080 × 1440 (3:4) | 965 × 1440 | 57 or 58 px left and right | 89.4% |
| 2:3 portrait | 1080 × 1350 (4:5) | 905 × 1350 | 87 or 88 px left and right | 83.8% |
| Panorama | 1080 × 566 (1.91:1) | 1080 × 307 | 129 or 130 px top and bottom | 54.2% |
| Panorama | 1080 × 1080 | 1080 × 307 | 386 or 387 px top and bottom | 28.4% |
| 3:2 landscape | 1080 × 1350 | 1080 × 720 | 315 px top and bottom | 53.3% |
| 16:9 landscape | 1080 × 1350 | 1080 × 608 | 371 px top and bottom | 45.0% |
| 16:9 landscape | 1080 × 1920 | 1080 × 608 | 656 px top and bottom | 31.6% |
Calculator figures; the ffmpeg files were measured and agree within 1 px.
Read the pattern. Of the rows in this table the panorama on a square is the worst, a thin strip on 28.4% of the canvas, while on 1080 × 566 it covers 54.2%. The same panorama on 1080 × 1350 covers 22.7% and on 1080 × 1440 only 21.3%, both inside the feed range, so a very wide photo gets a thin strip on any tall canvas. A tall photo does best in 3:4 (89.4%), the tallest shape inside the range.
The 1080 × 1920 row, and the 1080 × 1920 canvas in the chart above, are there to show the arithmetic, not as a feed size. Its ratio is 0.5625, outside the range, so by the Help rule a feed photo padded to it would be cropped again. Story and Reel sizes have their own guides, linked at the end, and nothing here was tested on Stories.

Step 3: add the bars, keep the whole photo
In many editors the option is called fit, contain or letterbox, not fill or cover, with the background set to white; no editor was tested. Of the Koldflux tools we found none that writes the padded file, so the command below is the tested way. You need ffmpeg installed (free, from ffmpeg.org or your package manager) and a Bash shell. Download pad-photo.sh with the link under this paragraph. It scales the photo to fit inside the canvas, down or up (a photo smaller than the canvas is enlarged: a 300 × 200 file came out as 1080 × 720 on 1080 × 1350), pads the rest, and writes one image. Run it in the folder with the script, and give it the photo, the output file, the canvas width and height, and a colour if you do not want white. Do not give the output the same name as the photo: the original would be overwritten.
The command inside is ffmpeg's scale with force_original_aspect_ratio=decrease, then pad centred on the canvas. The script stops with a message and exit code 2 on a missing file, an empty file, a size that is not a whole number above 0, a file that is not an image, and no arguments. It strips Windows line breaks from the size and colour, and it handled a file name with Cyrillic letters and spaces.
It ran 29 times in commands.log (scripts together), including the test photo, a black-bar variant, those edge inputs, a photo already in the canvas shape, which came out with no bars, a 300 × 200 photo and a .jpg output. On the 3:2 photo into 1080 × 1350 it wrote the file, and the scan gave bars of 315 px top and bottom, as the calculator said.
Our plan was to use ImageMagick. It was not installed on the test machine, so we did not run it and this page does not publish an ImageMagick command.
bash pad-photo.sh photo.jpg padded.png 1080 1440
bash pad-photo.sh photo.jpg padded-black.png 1080 1350 blackCheck the file: bars counted, photo still whole
Two checks, both on the file you made.
- Count the bars: scan.py (download link under this list) reads a PNG image and prints its width, height and how many rows at the top and bottom and columns at the left and right are entirely the bar colour. For the 3:2 photo above it printed 1080 1350 315 315 0 0. Give it the colour as three numbers if the bars are not white. It needs a PNG: on a .jpg output the same 3:2 photo gave 304 and 310 instead of 315, because compression changes the bar pixels.
- Check that the photo is still whole: we cut the padded file back to the photo area and compared it with the original scaled to that size, using ffmpeg's SSIM, where 1.0000 means equal to four digits. All 20 files read 1.0000. That result is partly built in, because both sides come from the same scaler, so there is a control: the same comparison on a copy of the original with 10% cut from each edge. It read 0.19 to 0.62, so the check can tell a cut photo from a whole one.
scan.py reports a clear message and exits with 2 on a missing file, an empty file, a text file, no argument and a colour above 255. It does not measure whether Instagram will crop your upload. That needs an account, and none was used here.
python3 scan.py padded.png
python3 scan.py padded-black.png 0 0 0Limits of this method, and what the Koldflux resizer does
What the Koldflux feed resizer does
The Koldflux Resize image for Instagram Feed tool scales and centre-crops a photo to 1080 × 1350 (its own page says so), so use pad-photo.sh or your editor for a no-crop result. A 4:5 centre crop keeps 53.3% of the width of the 3:2 photo and 83.8% of the height of the 2:3 portrait (computed, not measured). The scan found no bars in either output, and its files were closer to a centre crop (similarity 0.92 and 0.98) than to a padded copy (0.44 and 0.44).
What this check does not cover
We read one Instagram page and ran two Koldflux tools and two scripts. No Instagram account, upload or app screen was used, so this page cannot say what the crop step shows, what Stories do with a padded image, or how the profile grid shows a padded photo.
The four photos are landscape, panorama and portrait scenes; a photo with white edges of its own would be counted by scan.py as part of the bar, because it counts rows and columns that are exactly the bar colour. We measured PNG files; on one JPEG output scan.py counted 304 and 310 where a PNG gave 315, so check a PNG.
The Help article gives the range for photos of width 320 to 1080, and our canvases are 1080 wide. We did not test other widths.
Do it in your browser
Free Koldflux tool, no account needed.
Work out bar size and scaled photo size for a canvas (free, in your browser)
Questions people ask
How do I post a photo on Instagram without cropping it?
If its ratio is between 1.91:1 and 3:4, post it as it is; Instagram Help says it keeps such photos. If not, pad it onto a 1080 × 1440, 1080 × 1350 or 1080 × 1080 canvas first, so the shape sits inside the range.
What canvas size should I use for white bars?
One inside 1.91:1 to 3:4 that is close to your photo's shape. A 2:3 portrait fits 1080 × 1440 with bars of 57 and 58 px on the sides, and a panorama fits 1080 × 566 with bars of 129 and 130 px top and bottom.
Can I use black bars or another colour?
pad-photo.sh takes a colour name or a hex value as its last argument, and the black-bar variant measured the same 315 px as the white one. Which colour looks better on Instagram was not tested.
Will Instagram still crop a padded photo?
By the Help rule, only if the padded canvas is outside 1.91:1 to 3:4, such as 1080 × 1920. We did not upload anything, so this follows the rule and not a test.
Why does the calculator say 130 px and my file has 129 and 130?
The leftover space was odd, so it cannot split evenly. The calculator rounds on its own, and ffmpeg puts the smaller bar on the top or left. Both are right to within 1 px.
Is there a free Koldflux tool that makes the padded image?
Not that we found. The letterbox calculator gives the numbers, and the Instagram Feed resizer scales and centre-crops, so use pad-photo.sh or an editor for the file.
Related
More guides on this topic
Sources and how we checked
- Instagram Help: Image resolution of photos you share (Meta, read November 25, 2026) (checked 2026-11-25)
- Koldflux letterbox and pillarbox calculator (Koldflux tool, run November 25, 2026) (checked 2026-11-25)
- Koldflux Resize image for Instagram Feed (Koldflux tool, run November 25, 2026) (checked 2026-11-25)
- Koldflux test log: ratios, controls, 20 photo and canvas pairs, resizer check (Koldflux measurement, November 25, 2026) (checked 2026-11-25)
- Commands log: the published commands, the commands as run, exit codes and edge cases (Koldflux) (checked 2026-11-25)
- pad-photo.sh: fit a photo in a canvas and fill the rest with a colour (Koldflux, Bash and ffmpeg) (checked 2026-11-25)
- scan.py: measure the bars of a padded image (Koldflux, Python 3 and ffmpeg) (checked 2026-11-25)
- run.py and ratios.py: compare the calculator with the padded files, and compute the ratios (Koldflux, Python 3) (checked 2026-11-25)
- tool-run.cjs and resize-run.cjs: drive the calculator and the resizer in Chromium (Koldflux, Node.js with Playwright) (checked 2026-11-25)
- Four CC0 test photos from Wikimedia Commons: titles, authors and checksums (Koldflux) (checked 2026-11-25)
- Instagram Help excerpt as read (Koldflux, saved text) (checked 2026-11-25)
On November 25, 2026 the Instagram Help article was opened in headless Chromium and its text saved; the two quoted sentences were checked word for word against the saved text. Four CC0 photos from Wikimedia Commons (titles, authors and SHA-256 checksums in sources.txt) were padded with ffmpeg 6.1.1 into five canvases each, 20 pairs in all, and each file was scanned for bar rows and columns with a Python script. The live Koldflux letterbox calculator was driven in headless Chromium with the same 20 pairs, plus its own worked example and two controls (an exact fit and an all-white image). Similarity was measured with ffmpeg SSIM against the scaled original, with a copy cut by 10% on each edge as the control. The live Koldflux Instagram Feed resizer was run on two photos. The published commands were run on a test photo and on edge inputs (29 runs, commands.log). No Instagram account, upload or app screen was used.