MiniToolStack logoMiniToolStack
Home/Developer Tools/Base64 Encoder / Decoder

Base64 Encoder / Decoder

Convert strings, JSON payloads, and domain verification tokens to and from Base64 with validation, URL-safe cleanup, and optional line wrapping.

Input

What is the Base64 Encoder / Decoder?

It is a browser-first utility that converts readable strings into Base64, normalizes URL-safe characters, and decodes payloads with validation so you can inspect data without leaving the tab.

Key Features

Bidirectional conversion for text, JSON, and other UTF-8 payloads.
URL-safe cleanup that automatically swaps '-' and '_' when needed.
Inline validation highlights invalid characters or missing padding before you copy.
Optional 76-character wrapping keeps PEM, email, and DNS records compliant.

How to Use

1

Paste text, JSON, or domain verification tokens (remove surrounding quotes from DNS records) into the input field.

2

Choose Encode to convert plain text into Base64, or Decode to turn Base64 payloads back into readable text.

3

Enable Wrap lines if you need RFC 2045–style 76-character rows for PEM files, DNS TXT records, or email attachments.

4

Click Run Tool, review the status message, and copy the Encoded or Decoded output as needed.

Common Mistakes to Avoid

Leaving quotes around DNS TXT values leads to decoding errors—remove quotation marks before processing domain verification tokens.
Mixing URL-safe and standard alphabets without normalizing '-' and '_' characters.
Ignoring '=' padding so the Base64 length is not a multiple of four.

Examples

Securely share API keys or secrets by encoding them before storing in environment variables.
Inspect Base64 webhook bodies, SSO assertions, or email tracking pixels to debug integrations.
Prepare DNS TXT verification records that require Base64 strings wrapped at 76 characters.

FAQ

Does the tool support URL-safe Base64?

Yes. It automatically swaps '-' and '_' when decoding and outputs clean, padded Base64 you can reuse anywhere.

Is any of my data uploaded?

No. Encoding and decoding happen entirely in your browser, so secrets, domains, and API keys never leave your device.

How large can my Base64 payload be?

Most browsers handle a few megabytes comfortably. For very large binaries, split the data or switch to the Base64 Image Encoder.