Developer Tools

Base64 Encode and Decode Online

Encode text to Base64 or decode a Base64 string back to readable text in one place. You can also load a file to get its Base64 representation, which is handy for embedding small images, fonts or certificates directly in code. Developers often pair this with our JSON Formatter when inspecting API payloads.

Last updated August 2, 20263 min read

Privacy note: encoding and decoding happen locally in your browser — nothing you paste is uploaded to ToolFerry. See our privacy policy.

Share:

How to encode and decode Base64

  1. 1

    Choose a direction

    Switch between Encode and Decode depending on whether you are creating or reading a Base64 string.

  2. 2

    Paste your input

    Type or paste text into the input box, or load a file to encode its raw bytes.

  3. 3

    Copy the result

    The output updates as you type. Copy it with one click, or press Clear to start over.

Why use this Base64 encoder and decoder

  • Full UTF-8 support, so accents and emoji encode and decode correctly.
  • Clear, friendly validation when a Base64 string is malformed.
  • File encoding for embedding assets as data without a build step.
  • Runs offline in your browser — safe for tokens and config values.

Common uses

  • Inspecting Base64 fields inside API responses and JWT payloads
  • Embedding a small icon or font in CSS as a data URI
  • Encoding credentials for HTTP Basic Authorization headers during testing
  • Moving binary values safely through text-only systems such as email or YAML

Frequently asked questions

Was this helpful?

Your feedback helps us improve our tools.