Base64 인코더

텍스트를 Base64로 인코딩/디코딩

모드:

입력 (일반 텍스트)

문자 수:0
줄 수:1

옵션

0 (줄 바꿈 없음)76 (RFC 2045)256

출력 (Base64)

문자 수:0
크기 비율:N/A

Base64 인코딩 소개

Base64는 이진 데이터를 ASCII 문자열 형식으로 표현하는 이진-텍스트 인코딩 방식입니다.

주요 사용 사례:

  • HTML/CSS에 이미지 삽입 (데이터 URI)
  • 텍스트 기반 프로토콜을 통한 이진 데이터 전송
  • JSON 또는 XML에 복잡한 데이터 저장
  • 이메일 첨부 파일 (MIME 인코딩)
  • API 인증 토큰

인코딩 세부 정보:

  • 64개 문자 사용: A-Z, a-z, 0-9, +, /
  • 정렬을 위한 = 패딩
  • 데이터 크기가 약 33% 증가
  • URL 안전 변형은 +/를 -_로 교체

About the Base64 Encoder & Decoder

Base64 is the encoding scheme that lets binary data travel safely through text-only channels — it's what turns an image into a string an old email system won't mangle, what embeds a small icon directly inside a CSS file as a data URI, and what makes up the header, payload, and signature segments of a JWT. This tool exists because doing that conversion by hand, or trusting it to a random command-line one-liner, is error-prone: a single wrong padding character or charset mismatch and the decoded output is garbage. It gives you a direct, no-friction way to go from readable text or a file to its Base64 representation, and back again, without installing anything.

You can encode plain text, or drop in an image or other file and get its Base64 string out, then reverse the process by pasting a Base64 string back in to recover the original content. It handles both UTF-8 text — the normal case for strings, JSON snippets, or config values — and binary data, which matters because treating binary bytes as if they were UTF-8 text is exactly the kind of mistake that corrupts output silently. Because encoding and decoding both happen instantly in the browser, you can go back and forth to sanity-check a value, for example encoding a string and immediately decoding it again to confirm you copied it correctly.

One thing worth remembering: Base64 is an encoding, not encryption — it makes binary data text-safe, it does not hide or protect it, so never rely on it to secure sensitive information. All conversion happens client-side in your browser, so nothing you paste or upload is sent to a server, which makes it a reasonable place to handle things like API tokens or private config snippets you don't want to email around in plaintext form. A common real-world use is generating a data URI for a small image so it can be inlined directly into HTML or CSS, skipping an extra network request entirely.

How to Encode and Decode Base64

Step-by-step guide to encoding text to Base64 and decoding Base64 strings.

  1. 1

    Enter Your Text

    Paste or type the text you want to encode into the input field. For decoding, paste your Base64 string.

  2. 2

    Select Operation

    Choose "Encode" to convert text to Base64, or "Decode" to convert Base64 back to readable text.

  3. 3

    View Result

    The encoded or decoded result will appear automatically in the output field.

  4. 4

    Copy Result

    Click the copy button to copy the result to your clipboard for use in your application.

Frequently Asked Questions

What is Base64 encoding?

Base64 is an encoding scheme that converts binary data into ASCII text format. It uses 64 characters (A-Z, a-z, 0-9, +, /) to represent data, making it safe to transmit over text-based protocols like email or JSON.

When should I use Base64 encoding?

Use Base64 when you need to embed binary data (like images) in text formats (HTML, CSS, JSON), transmit data over protocols that only support text, or encode credentials for HTTP Basic Authentication.

Is Base64 encryption?

No, Base64 is NOT encryption. It's an encoding method that can be easily reversed (decoded). Anyone can decode Base64 data. Never use Base64 alone to protect sensitive information - use proper encryption instead.