What is the effect of encoding an image in base64?

后端 未结 6 807
鱼传尺愫
鱼传尺愫 2020-11-22 07:21

If I convert an image (jpg or png) to base64, then will it be bigger, or will it have the same size? How much greater will it be?

Is it recommended to use base64 enc

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-22 07:52

    It will be approximately 37% larger:

    Very roughly, the final size of Base64-encoded binary data is equal to 1.37 times the original data size

    Source: http://en.wikipedia.org/wiki/Base64

提交回复
热议问题