Base64 Encode/Decode

Convert data to a Base64 string, and convert a Base64 string to data

Features

Supports UTF-8 including Japanese

Accurately converts multibyte characters without garbling

Converts automatically as you type

Shows the result instantly, no button needed

Supports up to 1 million characters

Can batch-process long text and larger data

Strict Base64 validation

Shows an error for invalid strings to prevent misconversion

How to Use

1

Select encode/decode

Select the conversion direction with the top buttons. You can also swap input and output with the center arrow button

2

Enter text or Base64

Paste a string into the input field and it converts automatically. Click the sample to try it out

3

Copy or save the result

Copy to the clipboard with the copy button, or save as a text file with the download button

Base64 Encode/Decode

Use Cases

Embedding in data URI format

Base64-encode text such as SVG or CSS and embed it directly into HTML

Checking API response data

Quickly grasp the contents of tokens or attached data returned in Base64 during development

Generating a value for Basic authentication

Easily create an authentication string that combines a username and password

Verifying email content

Decode a MIME-encoded subject or body to investigate the cause of garbling

Basic Knowledge

What is Base64

Base64 is an encoding method that represents binary data such as images using only 64 types of characters (A–Z, a–z, 0–9, +, /), and the resulting data size is approximately 1.33 times larger than the original.

Why Convert to Base64

It is used to safely transport binary data within systems that can only handle text safely, such as email and JSON.

  • Data URI:A data URI is a way to embed images directly into HTML or CSS in the format "data:image/png;base64,~".
  • Basic Authentication:In Basic authentication, a value created by Base64 encoding "username:password" is sent, so this format conversion is necessary.

Meaning of the Trailing "="

The "=" at the end of a Base64 string is called padding, a symbol for length adjustment. One or two "=" characters are added to make the number of characters after conversion a multiple of 4.

Safety and Privacy

Runs entirely in your browser

Your input data is processed only within your browser and is never sent externally.

Processing only in your browser

conversion is processed entirely within your browser, and input data is not sent to any server.

Communications encrypted with HTTPS

Page loading is also encrypted by TLS, and content cannot be read by third parties.

No transmission to third parties

Input content is not sent to external services such as ad networks or trackers.

No automatic saving of results

conversion results and input suggestions are not stored on the server.

Follow RAKKOTOOLS on Google Search

211 useful tools become easier to find from Google Search and AI Search!

  • Found in search
  • Also shown in AI Search
  • Discover new tools
Related Tools

RAKKOTOOLS is free to use!

Available free of charge for individuals and corporations, commercial and non-commercial use alike.No prior permission or usage application is required. Feel free to use it in various situations.

  • Use in streaming and videos

    Use various tools such as lottery draws and raffles in live streams and videos.

  • Use in schools, work, and events

    Can be used in various situations such as classes, team division, internal work, and events.

  • Introduction on Web, books, and SNS

    Feel free to introduce it as a useful tool on web media, books, SNS, and other platforms.

  • Commercial use

    Can be used for commercial purposes such as research, calculation, processing, and conversion in business and production.

If you mention it, I get motivated to create more tools!

If using in streaming and videos

Link to RAKKOTOOLS in the description, or Mention or display that you are using RAKKOTOOLS in the stream or video.

Credit example for the description

RAKKOTOOLS https://rakko.tools/en

Usage guidelinesYou are free to use it for normal purposes. However, use for purposes that violate laws, infringe on third-party rights, impose significant load on the service, or otherwise interfere with service operation is prohibited.

We do not guarantee the accuracy or completeness of information and calculation results obtained from each tool.

This notice is a translation of the original Japanese text. If there is any discrepancy between the translation and the original, the Japanese original takes precedence.