Free2BoxFree2Box

Base64 인코더 / 디코더

텍스트를 Base64로 빠르게 인코딩하거나 Base64를 텍스트로 디코딩합니다.

원본 텍스트
인코딩할 텍스트를 입력하세요
Base64 결과
인코딩된 Base64 문자열
Base64란?

Base64는 바이너리 데이터를 ASCII 문자열로 변환하는 인코딩 방식입니다. 주요 용도:

  • URL이나 이메일에서 바이너리 데이터 전송
  • JSON 또는 XML에 이미지 데이터 삽입
  • 인증 정보 인코딩 (암호화가 아님에 주의)
  • HTTP Basic Authentication 인코딩

주의: Base64는 인코딩 방식이며 암호화가 아닙니다. 민감한 데이터 보호에 사용하지 마세요.

사용 방법

1

텍스트 붙여넣기 또는 입력

입력 영역에 텍스트, 코드 또는 데이터를 입력하세요.

2

옵션 선택

적용할 변환이나 포맷을 선택하세요.

3

결과 복사

한 번의 클릭으로 출력을 클립보드에 복사하세요.

이 도구를 사용하는 이유

100% 무료

숨겨진 비용도, 프리미엄 등급도 없습니다 — 모든 기능이 무료입니다.

설치 불필요

브라우저에서 완전히 실행됩니다. 소프트웨어를 다운로드하거나 설치할 필요가 없습니다.

프라이빗 & 안전

데이터가 기기 밖으로 나가지 않습니다. 어떤 서버에도 업로드되지 않습니다.

모바일 지원

완전 반응형 — 스마트폰, 태블릿, 데스크톱에서 사용할 수 있습니다.

Base64 Encoding and Decoding Explained

Key Takeaways

  • Base64 converts binary data into ASCII text, making it safe to transmit through text-only channels like email and JSON.
  • Base64 is an encoding scheme, not encryption — it provides no security and can be decoded by anyone.
  • All encoding and decoding happens in your browser — your data stays on your device.

Base64 encoding is one of the most fundamental data transformation techniques in web development. It represents binary data using 64 ASCII characters (A-Z, a-z, 0-9, +, /), enabling safe transmission of files, images, and binary content through text-based protocols. Understanding Base64 is essential for working with APIs, email systems, and data URIs.

Base64 encoding increases data size by approximately 33% compared to the original binary.

Size Overhead

Key Concepts

1

How Base64 Works

Base64 takes every 3 bytes (24 bits) of input and splits them into four 6-bit groups, mapping each to one of 64 printable ASCII characters. Padding with '=' is added when input length is not a multiple of 3.

2

Data URI Embedding

Base64-encoded images can be embedded directly in HTML and CSS using data URIs (data:image/png;base64,...), eliminating extra HTTP requests for small assets.

3

Email Attachments (MIME)

Email protocols like SMTP are text-based. Base64 encoding via MIME allows binary attachments like images and documents to travel safely through email systems.

4

Base64url Variant

The URL-safe variant replaces '+' with '-' and '/' with '_' to avoid conflicts in URLs and filenames. This variant is used extensively in JWTs and OAuth tokens.

Pro Tips

Never use Base64 for security — it is trivially reversible. Use proper encryption (AES, RSA) for sensitive data.

Avoid Base64-encoding large images inline; the 33% size increase negates the benefit of saving an HTTP request.

Use Base64url (RFC 4648 §5) instead of standard Base64 when the output will appear in URLs or filenames.

Most modern browsers support btoa() and atob() natively, but they only handle Latin-1 characters — use TextEncoder for Unicode.

All Base64 encoding and decoding is performed entirely in your browser. Your data is never transmitted to any external server, making this tool safe for sensitive content.

자주 묻는 질문