Enkoder / Dekoder Base64
Enkode dan dekode string Base64 secara online
Cara Menggunakan Enkoder / Dekoder Base64
- 1Pilih apakah Anda ingin Encode atau Decode
- 2Masukkan teks Anda di bidang input
- 3Hasilnya muncul secara instan di bidang output
- 4Klik "Copy" untuk menyalin hasil
- 5Gunakan "Swap" untuk menukar input dan output dengan cepat
Tentang Enkoder / Dekoder Base64
Base64 adalah skema pengkodean biner-ke-teks yang banyak digunakan dalam transmisi data, pengkodean email, dan API web. Alat kami memudahkan pengkodean teks ke Base64 atau dekoding string Base64.
Pengkodean Base64 biasa digunakan dalam URI data untuk gambar, HTTP Basic Authentication, dan penyematan data biner dalam JSON/XML.
Fitur Utama Enkoder / Dekoder Base64
- Fast and accurate Base64 Encoder processing
- No installation required — works in browser
- Free to use with no limitations
- Privacy-focused — data never leaves your device
- Mobile and desktop compatible
- Instant results with live preview
Format yang Didukung
Format Input
Format Output
For encoding binary files (images, PDFs), use the Image to Base64 tool instead.
Contoh
Encode a string to Base64
Useful for HTTP Basic Auth headers.
Input
user:secretpassword
Output
dXNlcjpzZWNyZXRwYXNzd29yZA==
Decode a Base64 JWT payload
Base64 decode the middle segment of a JWT token.
Input
eyJ1c2VySWQiOjEyMywicm9sZSI6ImFkbWluIn0=
Output
{"userId":123,"role":"admin"}Kasus Penggunaan Umum
- Professional Base64 Encoder tasks
- Quick everyday calculations
- Educational purposes and learning
- Business and workplace productivity
- Personal projects and hobbies
- Decoding Base64 strings received from third-party APIs
Pemecahan Masalah
Invalid Base64 string — incorrect padding
Solusi
Base64 strings must have a length that is a multiple of 4. Missing = padding characters at the end cause this error. Add one or two = characters to fix it.
Output contains garbled characters
Solusi
The decoded text may be binary data, not readable text. If you are decoding an image or file, use the Base64 to Image tool instead.
URL-safe Base64 does not decode correctly
Solusi
URL-safe Base64 uses - and _ instead of + and /. Enable the URL-safe option or replace those characters manually before decoding.
Pertanyaan yang Sering Diajukan
What is Base64 encoding?
Base64 is a binary-to-text encoding scheme that represents binary data using 64 ASCII characters. It's used to safely transmit data over text-based protocols.
When should I use Base64?
Use Base64 when you need to embed binary data in text formats like JSON or XML, or when transmitting data over channels that only support text.
Does Base64 encrypt my data?
No. Base64 is encoding, not encryption. Anyone with a Base64 decoder can read the original content. Never use Base64 to protect sensitive data.
Why does Base64 output end with == or =?
Base64 pads output to a multiple of 4 characters using = signs. One or two = characters may appear depending on the input length.
Can I encode images to Base64?
For images, use the dedicated Image to Base64 tool which handles binary file input. This tool is optimized for text strings.
What is URL-safe Base64?
URL-safe Base64 replaces + with - and / with _ so the encoded string can be safely used in URLs and filenames without percent-encoding.