ToolMochi

Base64 Encoder & Decoder

Encode text to Base64 or decode it back to UTF-8, with an optional URL-safe alphabet. Everything runs locally.

Mode
01Input
0
02Output
0
This tool runs entirely in your browser. Your input is never uploaded.

How to use

  1. 1Paste text to encode, or switch to Decode and paste a Base64 string
  2. 2Enable URL-safe mode if you need - and _ instead of + and /
  3. 3Copy the result as soon as it appears

FAQ

Why does decoded text look garbled?

This tool decodes as UTF-8. Content encoded with GBK or another charset will fail with an error and needs to be converted with the matching encoding first.

What is URL-safe Base64?

It replaces + and / with - and _ and drops trailing = padding, so the output can be used safely in URLs and file names.

Is my text uploaded?

No. Encoding and decoding run entirely in your browser and nothing is stored.

Related tools

JSON Formatter & Validator

Format, minify and validate JSON, compare two payloads path by path, and escape or unescape JSON strings.

Cron Expression Parser

Parse crontab expressions into a plain-language schedule and the next 5 run times.

URL Encoder & Decoder

Percent-encode or decode URLs and query values, with component, full-URL and form modes.

HTML Entity Escaper

Escape <, >, & and quotes into HTML entities, or turn entities back into readable text.