Network & Infrastructure utility
Docker Memory Converter
Convert common memory sizes into bytes and Docker Compose memory values.
● This tool runs entirely in your browser. Your input is never uploaded to our servers.
Output
Your result will appear here…
How to use Docker Memory Converter
- Enter a quantity such as 512 MiB or 1.5 GB.
- Select Convert to see bytes and equivalent binary units.
- Use the integer byte value in Docker configuration.
Example
Input:
512 MiB
Output:
Bytes: 536870912 MiB: 512.000 MiB Docker Compose example: memory: 536870912
Use cases
- Convert a readable memory limit to bytes.
- Compare decimal and binary memory units.
- Prepare a Docker Compose memory setting.
About this tool
Convert common memory sizes into bytes and Docker Compose memory values. Processing happens locally in your browser, so your input is not sent to a server or included in analytics.
Frequently asked questions
Which units are accepted?
B, KB, MB, GB, TB and their binary KiB, MiB, GiB, and TiB forms are accepted.
Does Docker always interpret memory identically?
Runtime and Compose versions can differ; check the documentation for your deployment environment.
Is the value sent to Docker?
No. This page only converts the text you enter.