Base64 Koder/Dekoder
Kod og afkod tekst med Base64.
Afdragsplan
| # | Betaling | Hovedstol | Renter | Restgæld |
|---|---|---|---|---|
Vækst over tid
| År | Investeret | Værdi |
|---|---|---|
Introduktion
Base64 Encoder/Decoder - Encode and decode text with Base64. Enter Mode, Text to get an instant result.
Formel
Base64 maps every 3 bytes of input to 4 printable ASCII characters using a 64-character alphabet (A–Z, a–z, 0–9, +, /).
Trin for trin
- Enter the Mode.
- Enter the Text.
- Click Calculate to see your result instantly.
Eksempel fra virkeligheden
Example: With Mode = encode, the Base64 Encoder/Decoder gives Encoded: SGVsbG8sIENhbGN1bGF0b3JDYXN0IQ==.
Ofte Stillede Spørgsmål
Is Base64 encryption?
What happens if I try to decode invalid Base64?
What inputs does the Base64 Encoder/Decoder need?
How accurate is the Base64 Encoder/Decoder?
Is the Base64 Encoder/Decoder free to use?
Om Base64 Koder/Dekoder
Base64 is an encoding scheme that converts binary data into a text format using only 64 printable ASCII characters. It is widely used in web development, email systems, data storage, and APIs to safely transmit or embed binary data in contexts that only support text. The Base64 Encoder Decoder on CalculatorCast lets you encode any text to Base64 or decode any Base64 string back to plain text instantly.
The 64 characters used in Base64 are the uppercase letters A through Z, the lowercase letters a through z, the digits 0 through 9, and the symbols plus (+) and forward slash (/). These characters are safe to include in URLs, HTML, JSON, and most text-based data formats. The equals sign (=) is used as padding at the end of the encoded string when the input length is not a multiple of three bytes.
In web development, Base64 encoding is used to embed images directly in HTML or CSS files as data URIs. Instead of referencing an external image file, you can include the image data inline as a Base64 string. This reduces HTTP requests and is useful for small icons and logos. Our encoder handles this use case directly.
Email systems use Base64 to encode binary attachments such as images and documents within the MIME format. When an email client encodes an attachment, it converts the binary file data to a Base64 string that can safely travel through text-based email protocols. Our decoder can reverse this process.
APIs and web services frequently use Base64 to encode authentication credentials. HTTP Basic Authentication sends a username and password as a Base64-encoded string in the request header. Developers use Base64 decoders to inspect these values during debugging.
JSON Web Tokens (JWTs) use Base64URL encoding, a variant of Base64 that replaces the plus and forward slash characters with minus and underscore to make the encoded string safe for use in URLs. Our tool supports both standard Base64 and Base64URL variants.
The Base64 Encoder Decoder is free on CalculatorCast and works on all devices without registration. Paste your text or Base64 string and get the result instantly.