Base64 Encoder and Decoder
Category: Coding and Development Tools
Last Updated On: November 23, 2026
Encode or decode text using Base64 format securely and directly in your browser.
About the Tool - Base64 Encoder and Decoder
The Base64 Encoder & Decoder lets you quickly convert text into Base64 encoding or decode Base64 back into readable text. This tool works entirely in your browser, ensuring your data remains secure and private.
Features
- Instant Base64 encoding and decoding.
- Works entirely offline in your browser.
- Secure – your data never leaves your device.
- One-click copy to clipboard.
- Easy-to-use interface.
How to Use
- Enter or paste your text into the input box.
- Click Encode to convert text to Base64 or Decode to convert Base64 back to text.
- The result will appear in the output box.
- Use the Copy button to copy the result to your clipboard.
- Click Clear to reset both boxes.
Examples - Base64 Encoding and Decoding
If you're new to Base64, looking at a few examples can make the process easier to understand. Below are some common examples showing how ordinary text is converted into Base64 and how an encoded string can be converted back into its original form.
Example 1: Convert Plain Text to Base64
Suppose you want to convert the text Hello World into Base64 format. Enter the text into the encoder and click the Encode button.
Input Text:
Hello World
Base64 Encoded Output:
SGVsbG8gV29ybGQ=
The encoder converts the original text into a Base64 string. You can now copy this result and use it wherever Base64-formatted text is required.
Example 2: Decode a Base64 String
Now, let's reverse the process. If you receive the Base64 string SGVsbG8gV29ybGQ= and want to find out what it contains, paste it into the decoder and click Decode.
Base64 Input:
SGVsbG8gV29ybGQ=
Decoded Text:
Hello World
The decoder converts the encoded string back into its original text. This is useful when you need to read Base64 data received from an API, website, or another application.
Example 3: Encode a URL into Base64
Base64 can also represent URLs as encoded text. For example, you can convert the following website address into Base64 format.
Original URL:
https://example.com
Base64 Encoded Output:
aHR0cHM6Ly9leGFtcGxlLmNvbQ==
When you decode this Base64 string, you'll get the original URL back. Remember that Base64 encoding does not encrypt or hide a URL; it only changes its representation.
Example 4: Encode a Sentence
You can encode complete sentences, not just individual words. For instance, let's convert a short message into Base64.
Original Text:
Welcome to GrippingWords
Base64 Encoded Output:
V2VsY29tZSB0byBHcmlwcGluZ1dvcmRz
As you can see, the encoder handles ordinary sentences in the same way as shorter text. You can try your own messages using the Base64 encoder above.