Base64 Encode/Decode

Encode/Decode a string using Base64 algorithm

Tags: base64 base64 encode/decode decoder encoder

🚀 189,917 total conversions (9 this month)

Practice Python with coding challenges

Solve hands-on problems right in this editor: run the sample tests, submit, and get an AI code review.

All Python challenges
Easy

Rectangle Perimeter

Compute the perimeter of a rectangle from its sides.

You'll learn ArithmeticReturn values
BeginnerLearning-pathVariables
Easy

Dot Product of Two Vectors

Multiply two vectors element by element and add the results: the core operation of every neuron.

You'll learn VectorsDot product
Neural networksaimachine learning
Easy

Distance Between Points

Compute the straight-line distance between two points.

You'll learn Pythagorean theoremSquare roots
BeginnerFunctionsLearning-pathmath
Easy

Average of Three

Average three whole numbers.

You'll learn ArithmeticDivision
BeginnerLearning-pathVariables
Easy

To-Do List

Keep a list of tasks: add them, mark them done, remove them and report what is still pending.

You'll learn Typed collectionsRecords
BeginnerSimulationStrings
Easy

Prime Number Check

Decide whether a number is prime.

You'll learn DivisibilityLoop optimization
BeginnerLoopsNumbersStudent-beginner
Easy

Days in a Month

Return how many days a month has, including leap years.

You'll learn Calendar rulesHelper functions
BeginnerConditionsFunctionsLearning-path
Easy

Count Pairs With a Sum

Count pairs of positions whose values add up to a target.

You'll learn Pairs of indexesAvoiding double counts
ArraysBeginnerLearning-pathNested-loops
Easy

Min and Max Together

Find the smallest and largest value in one pass.

You'll learn Single passMultiple return values
ArraysBeginnerFunctionsLearning-path
Easy

Hollow Square

Draw the outline of a square with * characters.

You'll learn Edge detectionBuilding strings
BeginnerLearning-pathNested-loopsPatterns
Easy

Number Triangle

Build a triangle of increasing numbers.

You'll learn Growing rowsCounters across rows
BeginnerLearning-pathNested-loopsPatterns
Easy

Pyramid Rows

Draw a right-aligned pyramid of # blocks.

You'll learn String patternsPadding
BeginnerLearning-pathNested-loopsPatterns

Introduction

This online Base64 encoder tool makes it easy to convert strings to Base64 data. Whether you need to encode or decode, this tool simplifies the process and saves you time.

How to Use This Tool

Using the tool is straightforward! Just paste your string into the editor, then click the "Encode" or "Decode" button to process your data. It's that simple.

Once you're done encoding or decoding, you can download the result, save it, or share it with others using a short link. If you sign in with Google or GitHub, you can also save your results to your account for future use.

What is Base64?

Base64 is a way to encode binary data into text, making it easier to store and transfer. It works by converting binary data into a radix-64 representation, using an ASCII string format. The name "Base64" comes from a specific MIME content transfer encoding.

Base64 is commonly used in scenarios where binary data needs to be transmitted over systems designed for text, such as emails or XML documents. This ensures the data remains intact during transport. You’ll often see Base64 in applications like email attachments, web storage, and encoding complex data into XML or JSON.

Learn more

Examples

Before encoded

      
Hello, World!
      
    

After encoded

      
SGVsbG8sIFdvcmxkIQ==