Base64 형식에서 인코딩


아래 필드에 텍스트를 붙여넣으세요
문자 집합
파일을 드래그 앤 드롭하거나 +를 클릭하여 업로드하세요
문자 집합
Base64 decode

여기에 파일을 업로드하거나
드래그 앤 드롭하세요

Base64 Decode
파일을 드래그 앤 드롭하거나 +를 클릭하여 업로드하세요
별표(*)가 표시된 모든 필드는 비워둘 수 없습니다.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Base64 Decode Base64 Decode Base64 Decode

Base64 인코딩

Base64 인코딩은 이미지, 파일 또는 일반 텍스트와 같은 바이너리 데이터를 ASCII 문자열 형식으로 변환하는 방법입니다. 이 방식은 웹 개발, 이메일 포맷, 텍스트 전용 환경에서의 데이터 전송 등에 일반적으로 사용됩니다. 데이터를 Base64 표현으로 변환하면, 바이너리 형식을 지원하지 않는 시스템 간 전송 시에도 데이터가 변경되지 않도록 보장할 수 있습니다.

Base64 형식으로 인코딩

Base64 인코더를 사용하면 이미지, PDF, 문서 등의 파일을 업로드하고 Base64 형식으로 변환할 수 있습니다. 이 인코딩 방식은 이메일 첨부파일, 웹 자산, 암호화된 데이터를 HTML, CSS, JSON에 직접 삽입하는 데 매우 유용합니다.

정확성과 효율성 보장

개발, 저장 또는 보안 목적으로 Base64 인코딩이 필요한 경우 이 도구는 정확성과 효율성을 보장합니다.

이 Base64 인코더 도구 사용 방법

Paste your text within the field below
Character Set
Drag and drop the file or click + to upload
Character Set
Base64 decode

Upload or drag
and drop file here

Base64 Decode
Drop Files or Click the + above to add Files.
All fields marked with an asterisk (*) cannot be left blank.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
1
Base64 형식으로 인코딩
원본 문자열을 복사해 붙여넣거나 파일을 드래그 앤 드롭하세요.
2
인코딩 유형 변경
 인코딩 형식 및 줄 바꿈 조정
3
인코딩하려면 여기를 클릭하세요
데이터를 원래 형식으로 변환하려면 ‘인코딩’ 버튼을 클릭하세요.
4
출력값 복사
여기에서 인코딩된 출력을 확인하세요.
Base64 Decode Base64 DecodeBase64 Decode

일반적인 Base64 사용 사례

Base64 Decode
이메일 첨부파일
(MIME 형식) – 이메일 시스템은 파일을 Base64로 인코딩하여 전송 및 표시의 정확성을 보장합니다. 이 방식은 8비트 클린하지 않은 전통적인 이메일 시스템에서 데이터가 변경되지 않도록 도와줍니다. 웹 개발자들은 HTML 또는 CSS 파일 내에 이미지나 미디어를 직접 삽입하기 위해 Base64 인코딩을 사용합니다.
Base64 Decode
암호화 응용 프로그램
Base64 인코딩 방식은 해시된 비밀번호, 디지털 서명, 보안 키 등을 저장하는 데 사용됩니다. 또한 안전한 파일 전송에서도 사용되며, 많은 시스템은 전송 전에 민감한 파일을 Base64로 인코딩하여 데이터 무결성을 유지합니다.
Base64 Decode
인코딩된 데이터는 그대로 유지됨
URL-안전 인코딩은 +를 -로, /를 _로 변환하여 URL 내에서의 문제를 방지합니다. 또한 공백 및 특수 문자는 %20으로 인코딩되어 웹 링크에서의 호환성을 높입니다. 이는 링크, API 및 기타 웹 환경에서 인코딩된 데이터가 손상되지 않도록 보장합니다.
Base64 Decode
인쇄 가능한 문자
Base64는 바이너리 데이터를 표현하기 위해 인쇄 가능한 문자의 집합을 사용합니다. 그러나 웹 개발에서는 일부 문자를 특별히 처리해야 합니다. 표준 문자는 A-Z, a-z, 0-9 및 인코딩을 위한 +와 /를 포함합니다.

Base64 인코딩 기능

대부분의 프로그래밍 언어에서 Base64 인코딩은 기본적으로 또는 라이브러리를 통해 지원됩니다. 일반적으로 다음과 같이 구현됩니다:

JavaScript
// JavaScript

//The atob() function encode strings to Base64 in web applications.

const encodedString = atob("Some encoded string");
console.log(encodedString); // Output: U29tZSBlbmNvZGVkIHN0cmluZw==
Base64 Decode
# Python
# The base64.b64decode() function converts Base64 text into its original binary format.
import base64
original_str = "Some encoded string"
encoded_bytes= base64.b64encode(original_str.encode("utf-8"))
print(encoded_str)  # Output: U29tZSBlbmNvZGVkIHN0cmluZw==
Base64 Decode
// PHP
// The base64_decode() function allows web developers to process encoded data.
$encoded_str = "U29tZSBlbmNvZGVkIHN0cmluZw==";
$decoded_str = base64_decode($encoded_str);
echo $decoded_str; // Output: Some encoded string
Base64 Decode
// Java
// The Base64.getEncoder().encodeToString() method efficiently encodes text into Base64.
import java.util.Base64;
public class Main {
    public static void main(String[] args) {
        String originalStr = "Some encoded string";
        String encodedStr = Base64.getEncoder().encodeToString(originalStr.getBytes());
        System.out.println(encodedStr); // Output: U29tZSBlbmNvZGVkIHN0cmluZw==
    }
}
Base64 Decode
// C#
// The Convert.ToBase64String() method encodes binary data into a Base64 string.
using System;
class Program{
   static void Main()
   {
       string original = "string"; // Original string to encode
       byte[] bytes = System.Text.Encoding.UTF8.GetBytes(original); // Convert string to bytes
       string encoded = Convert.ToBase64String(bytes); // Encode bytes to Base64
       Console.WriteLine(encoded); // Output: c3RyaW5n
   }
}
Base64 Decode
# Ruby
# The Base64.encode64() method encodes a string into Base64 format.
require 'base64'original = 'string'  # Original string to encode
encoded = Base64.encode64(original)  # Encode string to Base64
puts encoded  # Output: c3RyaW5n
Base64 Decode
-- MySQL
-- The TO_BASE64() function encodes a string into Base64 format.
SELECT TO_BASE64('string') AS encoded; -- Output: c3RyaW5n
Base64 Decode
-- PostgreSQL
-- The encode() function encodes binary data using the specified format, like 'base64'.
SELECT encode('string'::bytea, 'base64') AS encoded; -- Output: c3RyaW5n
Base64 Decode
# Linux CLI
# The base64 command encodes input into Base64 format.
# The -n flag prevents echo from adding a newline character.
echo -n 'string' | base64  # Output: c3RyaW5n
Base64 Decode
Base64 Decode Base64 DecodeBase64 Decode