T

Text Machine

Powerful text tools, in your browser

Base64 Encode / Decode

Convert text to Base64 and decode it back in your browser. UTF-8 safe with an optional URL-safe variant — nothing is ever uploaded to a server.

Input

0 lines · 0 chars

Mode

URL-safe

How to use Base64 Encode / Decode

  1. 1

    Choose Encode or Decode

    Set the Mode to Encode to turn text into Base64, or Decode to turn a Base64 string back into readable text.

  2. 2

    Enter your input

    Type or paste your text or Base64 into the input panel, and optionally turn on URL-safe for the URL- and filename-friendly alphabet.

  3. 3

    Convert

    Click Convert to process the input locally in your browser, with full UTF-8 and emoji support.

  4. 4

    Copy or swap

    Copy the result, or use Swap to move the output back into the input and flip the mode for a quick round trip.

Frequently asked questions

What is the difference between Encode and Decode here?
Encode converts ordinary text into its Base64 representation, while Decode takes a Base64 string and reconstructs the original text. Flip between them with the Mode toggle.
What does the URL-safe option do?
URL-safe Base64 replaces the + and / characters with - and _ and removes the trailing = padding, so the result can be dropped straight into URLs, query strings, and filenames without escaping.
Does it handle emoji and non-English characters?
Yes. Text is encoded as UTF-8 before conversion, so accented letters, non-Latin scripts, and emoji are preserved accurately when you encode and decode them.
What happens if I paste invalid Base64 while decoding?
The tool detects malformed Base64 and shows an invalid-input message instead of producing garbage, prompting you to check for typos or switch to Encode mode.
Is my data sent anywhere?
No. The converter runs entirely in your browser with JavaScript, so your text and Base64 strings never leave your device, making it safe for sensitive or proprietary data.

Related tools

Keep going with these handy tools

URL Encoder / Decoder

JWT Decoder

HTML Encoder / Decoder

HTML to Text Converter

JSON Formatter

Regex Tester