# How to change the maximum chunk size ？

**URL:** <https://discuss.ipfs.tech/t/how-to-change-the-maximum-chunk-size/15299>\
**Category:** Kubo\
**Tags:** go-ipfs\
**Created:** [October 5, 2022, 1:00pm UTC](https://discuss.ipfs.tech/t/how-to-change-the-maximum-chunk-size/15299 "2022-10-05T13:00:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LLLLLL](https://avatars.discourse-cdn.com/v4/letter/l/839c29/32.png) [@LLLLLL](https://discuss.ipfs.tech/u/LLLLLL)\
**Post date:** [October 5, 2022, 1:00pm UTC](https://discuss.ipfs.tech/t/how-to-change-the-maximum-chunk-size/15299/1 "2022-10-05T13:00:23Z")

</div>

How can I change the maximum block size from the command line or otherwise?

---

<div class="post-metadata">

**Author:** ![SionoiS](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/sionois/32/5103_2.png) [@SionoiS](https://discuss.ipfs.tech/u/SionoiS)\
**Post date:** [October 5, 2022, 7:03pm UTC](https://discuss.ipfs.tech/t/how-to-change-the-maximum-chunk-size/15299/2 "2022-10-05T19:03:08Z")

</div>

`ipfs add --chunker=size-1048576 <FILE_HERE>`

That’s the standard chunker but with max size block instead of the default.

> **[Kubo CLI | IPFS Docs](https://docs.ipfs.tech/reference/kubo/cli/#ipfs-add)**
>
> API documentation for the Kubo command-line executable.

---

<div class="post-metadata">

**Author:** ![LLLLLL](https://avatars.discourse-cdn.com/v4/letter/l/839c29/32.png) [@LLLLLL](https://discuss.ipfs.tech/u/LLLLLL)\
**Post date:** [October 6, 2022, 2:48am UTC](https://discuss.ipfs.tech/t/how-to-change-the-maximum-chunk-size/15299/3 "2022-10-06T02:48:22Z")

</div>

ipfs add --chunker=size-1048576 \<FILE\_HERE\> This command cannot make the maximum block size bigger than 1M. I want the maximum block to be 2M.

---

<div class="post-metadata">

**Author:** ![Jorropo](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/jorropo/32/3230_2.png) [@Jorropo](https://discuss.ipfs.tech/u/Jorropo)\
**Post date:** [October 6, 2022, 9:04pm UTC](https://discuss.ipfs.tech/t/how-to-change-the-maximum-chunk-size/15299/4 "2022-10-06T21:04:46Z")

</div>

You can’t because it might wrap it in protobuf adding a few more bytes
