Toolsmith Hub

Vercel-ready developer utilities with a local-first execution bias.

string/format

Base64 Encode/Decode

The Base64 Encode/Decode tool converts UTF-8 text to and from standard or URL-safe Base64 locally in the browser. It also makes padding and alphabet differences explicit so debugging tokens, payload fragments, and query-safe blobs is less error-prone.

Base64 conversion happens locally in your browser with UTF-8 text support.
Mode
Variant

Output

aGVsbG8gd29ybGQ=

Notes

Standard Base64 keeps +, /, and padding.

Length

16 characters

How to use it

  1. 1. Choose whether you want to encode text or decode Base64 and pick the standard or URL-safe alphabet.
  2. 2. Paste the source value and review the converted output plus the format notes below it.
  3. 3. Copy the result directly into a token inspector, URL parameter, fixture, or support note.

Why this tool

Useful for debugging payloads, query strings, and binary-to-text transport cases with a lightweight learning layer.

Core function: Encode and decode UTF-8 or URL-safe Base64.

Unique angle: Explain URL-safe differences with examples.

Examples

Copy-ready examples for common workflows

Encode UTF-8 text for transport

Input

hello world

Output

aGVsbG8gd29ybGQ= in standard Base64, with the same bytes optionally shown as URL-safe Base64.

Decode a Base64URL payload fragment

Input

eyJzdWIiOiIxMjMifQ

Output

{"sub":"123"} after URL-safe normalization and padding repair.

FAQ

Questions this page answers up front

What changes in URL-safe Base64?

The alphabet swaps + for - and / for _, and padding may be omitted so the result can live safely inside URLs.

Does this work with non-ASCII text?

Yes. The tool encodes and decodes UTF-8 rather than assuming plain ASCII.

Is this a file encoder?

No. This MVP focuses on text input and output, which covers the most common debugging and conversion cases.