Back to home

Base64 Encoder and Decoder

Encode text into Base64, decode Base64 back to readable text, and prepare URL-safe or data URL output in one focused workspace.

Coding Waiting for result
Report issue

Base64 workspaceReady

Choose encode or decode, inspect byte size, switch URL-safe output, and copy the exact result without leaving the page.

Input bytes

23

Output length

32

Size change

+39.1%

Detected format

Standard

Quick examples

Input

Paste text, JSON, tokens, or Base64. Examples below fill the right mode automatically.

Result

The result updates live. Copy, download, or send it back to the input for the opposite conversion.

Base64 output
R29nb3RlbSBkZXZlbG9wZXIgdG9vbHM=

Byte preview

47 6f 67 6f 74 65 6d 20 64 65 76 65 6c 6f 70 65 72 20 74 6f 6f 6c 73

Text preview

Gogotem developer tools

Conversion options

Tune the output for APIs, JWT-style values, emails, or data URLs.

Output format

Before you paste it elsewhere

  • Use URL-safe mode for JWT segments, URL parameters, and filenames.
  • Keep padding when the receiving system expects strict standard Base64.
  • Do not treat Base64 as encryption; sensitive values still need real security controls.

How Base64 conversion works

Base64 turns bytes into a transport-friendly text alphabet. This tool uses UTF-8 text handling, restores missing padding while decoding, and can switch between standard Base64 and Base64URL.

Usage notes

  • Standard Base64 uses A-Z, a-z, 0-9, +, /, and optional = padding.
  • Base64URL replaces + and / with - and _ so the value is safer in URLs and filenames.
  • Base64 is reversible encoding, not encryption, so it should not be used to protect secrets.

Frequently asked questions

Can this encode Korean, Japanese, Chinese, or emoji?expand_more

Yes. The tool encodes text as UTF-8 bytes first, so common Unicode text can be round-tripped correctly.

Why does the encoded text get longer?expand_more

Base64 represents every 3 bytes as 4 characters, so output is usually about 33% larger before line wrapping.

Keep exploring

More tools to try next

Jump into related tools from the same category and popular picks across Gogotem.

View all tools arrow_forward