Decimal to Base64 Converter

Convert a decimal (base-10) integer to its Base64 representation using the standard A-Z a-z 0-9 +/ alphabet.

Decimal Input

Quick examples

Base64 Output

Result will appear here
Copied!

Summary

Convert a decimal (base-10) integer to its Base64 representation using the standard A-Z a-z 0-9 +/ alphabet.

How it works

  1. Enter a non-negative decimal integer in the input field.
  2. The converter converts the number to its minimal big-endian byte representation.
  3. Those bytes are then Base64-encoded using the standard RFC 4648 alphabet.
  4. The encoded string (with = padding) is displayed and ready to copy.
  5. Change the input at any time — the result updates instantly.

Use cases

  • Encode numeric identifiers for use in URLs or JSON payloads.
  • Inspect how integers are represented in Base64-encoded binary formats.
  • Generate Base64 tokens derived from numeric seeds.
  • Learn and teach Base64 encoding by tracing each step of the conversion.
  • Quickly verify manual Base64 calculations against a reference.
  • Convert large integers (bigints) to compact Base64 strings.

Frequently Asked Questions

Last updated: 2026-06-13 · Reviewed by Nham Vu