CalculatorCast

Base64 인코더/디코더

텍스트를 Base64로 인코딩 및 디코딩합니다.

소개

Base64 Encoder/Decoder - Encode and decode text with Base64. Enter Mode, Text to get an instant result.

공식

Base64 maps every 3 bytes of input to 4 printable ASCII characters using a 64-character alphabet (A–Z, a–z, 0–9, +, /).

단계별 안내

  1. Enter the Mode.
  2. Enter the Text.
  3. Click Calculate to see your result instantly.

실제 예시

Example: With Mode = encode, the Base64 Encoder/Decoder gives Encoded: SGVsbG8sIENhbGN1bGF0b3JDYXN0IQ==.

자주 묻는 질문

Is Base64 encryption?
No - it's an encoding, not encryption. It provides no confidentiality, only a way to represent binary data as text.
What happens if I try to decode invalid Base64?
The decode will fail since the input doesn't match valid Base64 structure.
What inputs does the Base64 Encoder/Decoder need?
You'll need to provide: Mode, Text. All fields use sensible defaults, so you can see a working example immediately and then adjust the values to match your own numbers.
How accurate is the Base64 Encoder/Decoder?
The Base64 Encoder/Decoder applies a fixed formula to the numbers you enter. Formula used: Base64 maps every 3 bytes of input to 4 printable ASCII characters using a 64-character alphabet (A–Z, a–z, 0–9, +, /). The result is only as reliable as the values you provide, so double-check your inputs.
Is the Base64 Encoder/Decoder free to use?
Yes, the Base64 Encoder/Decoder is completely free, requires no signup, and runs instantly in your browser.

Base64 인코더/디코더 소개

Base64 is an encoding scheme that converts binary data into a text format using only 64 printable ASCII characters. It is widely used in web development, email systems, data storage, and APIs to safely transmit or embed binary data in contexts that only support text. The Base64 Encoder Decoder on CalculatorCast lets you encode any text to Base64 or decode any Base64 string back to plain text instantly.

The 64 characters used in Base64 are the uppercase letters A through Z, the lowercase letters a through z, the digits 0 through 9, and the symbols plus (+) and forward slash (/). These characters are safe to include in URLs, HTML, JSON, and most text-based data formats. The equals sign (=) is used as padding at the end of the encoded string when the input length is not a multiple of three bytes.

In web development, Base64 encoding is used to embed images directly in HTML or CSS files as data URIs. Instead of referencing an external image file, you can include the image data inline as a Base64 string. This reduces HTTP requests and is useful for small icons and logos. Our encoder handles this use case directly.

Email systems use Base64 to encode binary attachments such as images and documents within the MIME format. When an email client encodes an attachment, it converts the binary file data to a Base64 string that can safely travel through text-based email protocols. Our decoder can reverse this process.

APIs and web services frequently use Base64 to encode authentication credentials. HTTP Basic Authentication sends a username and password as a Base64-encoded string in the request header. Developers use Base64 decoders to inspect these values during debugging.

JSON Web Tokens (JWTs) use Base64URL encoding, a variant of Base64 that replaces the plus and forward slash characters with minus and underscore to make the encoded string safe for use in URLs. Our tool supports both standard Base64 and Base64URL variants.

The Base64 Encoder Decoder is free on CalculatorCast and works on all devices without registration. Paste your text or Base64 string and get the result instantly.