Base64
Base64 is a binary-to-text encoding scheme that represents arbitrary bytes using a fixed 64-character alphabet.
Spring Security in Action, Second Edition
Base64 encoding represents arbitrary binary data as characters from a fixed 64-symbol alphabet and provides no confidentiality.
- How it is used
- Supports convenient transfer of credentials in HTTP Basic headers and JSON components in non-opaque tokens.
- How deep it goes
- Explains encoding, header placement, command-line construction, and confidentiality limits without detailing the encoding algorithm.
- Examples
- Demonstrates shell encoding, curl authentication, Authorization headers, and Base64-encoded JWT components.
- What you can do after
- Apply Base64 with command-line tools to construct HTTP Basic headers and recognize readable token data.
Read how Spring Security in Action, Second Edition explains Base64 →
Grokking Relational Database Design
Base64 is an encoding standard that represents binary data as ASCII characters.
- How it is used
- Represents binary password hashes as printable ASCII strings for database storage.
- How deep it goes
- Explains the encoding purpose and resulting length, but does not detail Base64’s conversion algorithm.
- Examples
- Uses a 40-byte bcrypt result encoded into 60 bytes and stored in CHAR(60).
- What you can do after
- Apply Base64 when storing binary hash output in a character column and resize the password column accordingly.
Read how Grokking Relational Database Design explains Base64 →
Cyber Threat Hunting
Base64 encoding represents binary or textual data as a sequence of printable characters using a 64-character alphabet.
- How it is used
- Supports threat hunting by turning suspicious encoded web requests and PowerShell commands into readable investigative evidence.
- How deep it goes
- Demonstrates extraction, URL normalization, decoding, and interpretation, without explaining Base64’s encoding algorithm.
- Examples
- Uses project-plan.php query strings, decoded UNIX commands, and a PowerShell -enc command associated with Dropbox network traffic.
- What you can do after
- Diagnose/debug with it by decoding suspicious values and correlating their contents with web, process, and network evidence.
Data Analysis with LLMs
Base64 encoding is a binary-to-text encoding scheme that represents binary data using a restricted set of printable characters.
- How it is used
- Prepares locally stored images and video frames for inclusion in GPT-4o prompts.
- How deep it goes
- Defines the 64-character encoding and three-byte-to-four-character grouping, then demonstrates Python encoding and UTF-8 conversion.
- Examples
- Uses private pictures, person-tagging comparisons, and JPEG video frames as encoding scenarios.
- What you can do after
- Apply Python’s base64 library to encode image bytes, then decode the result as UTF-8 for a prompt.
Kubernetes in Action, Second Edition
Base64 encoding represents binary or textual data as printable characters without providing confidentiality.
- How it is used
- Represents binary values in Kubernetes YAML and JSON manifests and carries Secret values through API objects.
- How deep it goes
- Explains manifest encoding, decoding during container injection, and the distinction from encryption without detailing the encoding algorithm.
- Examples
- Uses Secret data, Secret stringData, ConfigMap binaryData, and kubectl-generated manifests containing binary files.
- What you can do after
- Apply it via kubectl by recognizing encoded manifest values and distinguishing readable text from binary data.
Read how Kubernetes in Action, Second Edition explains Base64 →
The Design of Web APIs, Second Edition
Base64 is a binary-to-text encoding that represents arbitrary bytes using a restricted set of ASCII characters.
- How it is used
- Enables consumers to send file content as text inside JSON API requests alongside related data.
- How deep it goes
- Compares JSON embedding with multipart uploads and gives schema annotations, without detailing the encoding algorithm.
- Examples
- Uses account-application documents and a PNG account icon to illustrate Base64 file content.
- What you can do after
- Apply it via JSON Schema by specifying contentMediaType and contentEncoding for a Base64-encoded file property.
Read how The Design of Web APIs, Second Edition explains Base64 →
Logs and Telemetry
Base64 encoding represents binary or textual data as ASCII characters using a 64-character alphabet.
- How it is used
- Carries HTTP Basic authentication credentials in an authorization header for an HTTP output.
- How deep it goes
- Shows the credential representation and verification step, but does not explain the encoding algorithm or decoding process.
- Examples
- Uses a username and password joined by a colon, displayed as a Basic authorization value in WireMock console output.
- What you can do after
- Evaluate an authorization value with base64encode.org and recognize why HTTPS matters when transmitting credentials.
Also covered in
- .NET MAUI in Action
- Acing the Certified Kubernetes Administrator Exam, Second Edition
- Road to Kubernetes
- Digital Twins in Action
- Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform
- Kubernetes for Developers
- Go by Example
What to know first
- binary dataBinary data is information represented as sequences of bytes rather than character-oriented text.
- JSONJSON is a language-independent text-based data-interchange format that represents structured values using objects, arrays, strings, numbers, booleans, and null.
- YAMLYAML is a human-readable data serialization standard for representing structured data, commonly using indentation to express mappings and sequences.
- RSARSA is a public-key cryptosystem based on the computational difficulty of factoring large composite integers and supporting encryption and digital signatures.
Related concepts
- encryptioncontrasts with · Encryption is the cryptographic transformation of readable data into ciphertext that requires appropriate decryption information to recover the original data.
- binary datauses · Binary data is information represented as sequences of bytes rather than character-oriented text.
- base64url encodingalternative to · Base64url encoding is a URL-safe variant of Base64 that replaces plus and slash with hyphen and underscore and commonly omits padding.
- JSON Web Tokenused by · A JSON Web Token is a compact, URL-safe format for representing claims as a JSON object that can be digitally signed, integrity-protected, or encrypted.
Questions about Base64
What is Base64?
Base64 is a binary-to-text encoding scheme that represents arbitrary bytes using a fixed 64-character alphabet.
Which Manning books explain Base64?
Spring Security in Action, Second Edition, Grokking Relational Database Design, Cyber Threat Hunting, Data Analysis with LLMs, Kubernetes in Action, Second Edition, The Design of Web APIs, Second Edition and Logs and Telemetry.
What should I know before learning Base64?
Manning books that teach Base64 usually introduce binary data, JSON, YAML and RSA first.
What is the difference between Base64 and encryption?
Base64 is a binary-to-text encoding scheme that represents arbitrary bytes using a fixed 64-character alphabet. Encryption is the cryptographic transformation of readable data into ciphertext that requires appropriate decryption information to recover the original data.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.






