Advertisement
🔤 Text ↔ Base64
Mode: Encode
🖼 Image → Base64
No file chosen
Preview
📷 Base64 → Image
Preview
🔗 URL Encode / Decode
Mode: Encode
🔐 Text Hash Generator
MD5
SHA-1
SHA-256
SHA-512
📁 File Hash
No file chosen
MD5
SHA-1
SHA-256
SHA-512

How to Use

  1. Select the encoding tool you need: Base64, URL, or Hash.
  2. Enter or paste your text in the input area.
  3. Click the appropriate action button to encode, decode, or hash.
  4. For images, use the file upload to convert to/from Base64.
  5. Click Copy to save the result to your clipboard.

FAQ

What is Base64 encoding and when should I use it?
Base64 is a binary-to-text encoding scheme that represents binary data using 64 ASCII characters. It is commonly used to embed images in HTML/CSS, transmit binary data over text-based protocols like email (MIME) or JSON APIs, and store binary data in text formats. Base64 increases data size by approximately 33%.
How does URL encoding work?
URL encoding (percent-encoding) replaces unsafe or reserved characters with a percent sign followed by two hex digits (e.g., space becomes %20). This ensures URLs are transmitted correctly over the internet. encodeURIComponent encodes individual parameters, while encodeURI encodes a full URL, preserving characters like :, /, and ?.
What is the difference between MD5, SHA-1, and SHA-256?
MD5 produces a 128-bit hash (32 hex chars) and is fast but considered cryptographically broken. SHA-1 produces a 160-bit hash (40 hex chars) and is also deprecated for security use. SHA-256 produces a 256-bit hash (64 hex chars) and is currently widely used for secure hashing. For data integrity checks, any of them work; for security-sensitive applications, use SHA-256 or SHA-512.
Is Base64 encryption?
No. Base64 is an encoding scheme, not encryption. It does not provide any security or confidentiality. Anyone can decode Base64 data without a key. Base64 is used for data representation and transport, not for protecting sensitive information. If you need to protect data, use proper encryption algorithms like AES.
Why do URLs need to be encoded?
URLs can only contain a limited set of ASCII characters. Special characters (like spaces, Chinese characters, or symbols like & and =) have special meanings in URLs or are not allowed. URL encoding converts these characters into a safe format so they can be included in URLs without breaking the structure or being misinterpreted by web servers and browsers.
Advertisement
Copied!