Skip to content

Base64 Encoder/Decoder

Encode text to Base64 or decode Base64 back to text, with UTF-8 handling and a URL-safe base64url option.

Base64 Encoder/Decoder

59 chars

Encoded: 80 characters

Base64 output80 chars
eyJ1c2VyIjoiamFuZS5kb2VAZXhhbXBsZS5jb20iLCJyb2xlIjoiYWRtaW4iLCJwbGFuIjoicHJvIn0=

Updated . Provided as is. Check the output before you rely on it in production.

How to use Base64 Encoder/Decoder

  1. 1

    Choose Encode or Decode

    Pick the direction. Encode turns text into Base64; Decode turns Base64 back into text.

  2. 2

    Paste your input

    Paste the text or Base64 string. The result appears as you type.

  3. 3

    Use URL-safe mode when needed

    Turn on URL-safe to get the base64url variant, which uses - and _ instead of + and /, for tokens and URLs.

  4. 4

    Swap and copy

    Swap moves the output into the input and flips the mode, which makes round-trip checks quick. Copy the result when you are done.

Questions and answers

What is Base64 Encoder/Decoder?
Base64 represents binary data with 64 ASCII characters so it can pass through text-only channels. This tool encodes text as UTF-8 before converting it, decodes Base64 back to readable text, and supports the URL-safe base64url alphabet. To encode an image, use Image to Base64.
What is Base64 encoding used for?
Base64 represents binary data as ASCII text. Common uses include data URIs in HTML and CSS, email attachments, binary fields in JSON APIs and HTTP Basic authentication credentials.
For AI agents: how to call this tool

Machine-readable contract, endpoints and examples. Humans can ignore this section.

Best Path For Builders

Browser workflow

Runs instantly in the browser with private local processing and copy/export-ready output.

Browser Workflow

This tool is optimized for instant in-browser execution with local data handling. Run it here and copy/export the output directly.

/base64/

For automation planning, fetch the canonical contract at /api/tool/base64.json.