---
title: "Discussion on \"How to compress an image to an exact KB limit in the browser (canvas, binary search, and when to stop lowering quality)\" | Hashnode"
description: "Discussion on \"How to compress an image to an exact KB limit in the browser (canvas, binary search, and when to stop lowering quality)\". Upload forms for visas, exams and job portals often say \"photo must be under 100 KB\". A phone photo is 3 to 5 MB, and the usual advice is to drag a quality slider until the number looks right. You can"
url: "https://hashnode.com/posts/how-to-compress-an-image-to-an-exact-kb-limit-in-the-browser-canvas-binary-search-and-when-to-stop-lowering-quality/6ae2b5cb93035b67551c3181"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to compress an image to an exact KB limit in the browser (canvas, binary search, and when to stop lowering quality)](https://toolsyhub.hashnode.dev/how-to-compress-an-image-to-an-exact-kb-limit-in-the-browser-canvas-binary-search-and-when-to-stop-lowering-quality?utm_source=hashnode&utm_medium=feed)

Upload forms for visas, exams and job portals often say "photo must be under 100 KB". A phone photo is 3 to 5 MB, and the usual advice is to drag a quality slider until the number looks right. You can

Oct 29 · 3 min read · toolsyhub.hashnode.dev  
Read the article

-   [#performance](https://hashnode.com/tag/performance)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Toolsy Hub](https://hashnode.com/@toolsyhub)

@toolsyhub

  
[View profile](https://hashnode.com/@toolsyhub)

Free browser tools for PDFs, photos, text, code and money. Files you add stay in your browser.

Free browser tools for PDFs, photos, text, code and money: compress a PDF or photo to an exact KB size, merge and split PDFs, format JSON, decode JWTs and more. Files you add stay in your browser. No sign-up. https://www.toolsy-hub.com

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
