Small Tools
Git & DevOps 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

  1. Enter a quantity such as 512 MiB or 1.5 GB.
  2. Select Convert to see bytes and equivalent binary units.
  3. Use the integer byte value in Docker configuration.

Example

Input / settings:

512 MiB

Output:

Bytes: 536870912
MiB: 512.000 MiB
Docker Compose example: memory: 536870912

When to use

Overview

Convert common memory sizes into bytes and Docker Compose memory values.

Supported input

memory quantity

Output details

bytes and Docker Compose example

Privacy and security

This tool runs entirely in your browser. Your input is never uploaded to our servers.

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.

Related tools