How to use
- Paste a Secret manifest — the output of
kubectl get secret -o yamlworks as-is — or click an example chip. - Read the decoded values in the results: each row shows the key, the plaintext, whether it came from
dataorstringData, and the size in bytes. - Use the per-row Copy button for a single value, or Copy manifest for the whole Secret rebuilt as clean YAML with server-side fields removed.
What a Secret manifest looks like
| Field | Holds | Example |
|---|---|---|
data | base64 values, what the API returns | password: cGFzc3dvcmQ= |
stringData | plaintext, write-only, merged into data on write | password: hunter2 |
type | schema hint for consumers | Opaque, kubernetes.io/tls |
metadata.name | identity inside its namespace | app-credentials |
Decoding by hand
base64 -d reverses a value in one command; the tool does the same thing in the tab, plus UTF-8 validation, byte counts and error handling for values that were never valid base64.
printf '%s' 'cGFzc3dvcmQ=' | base64 -d
Gotchas this tool checks for
Base64 is not encryption
The encoding is reversible by anyone with the text — there is no key. Kubernetes documents that Secrets are, by default, stored unencrypted in the API server's underlying data store (etcd), so read access to etcd is read access to every Secret in it.
base64an encoding anyone can reversehunter2 becomes aHVudGVyMg== and back — anyone who can read the Secret runs the arrow backwards with base64 -d.stringData never comes back
A manifest you wrote with stringData looks plaintext in your editor, but kubectl get secret -o yaml only ever returns data. This tool decodes both, so an apply-file and its fetched form read the same here — when you copy the manifest out, stringData is re-encoded into data the way the server would.
Starting from a .env file instead? The converter builds the Secret exactly as kubectl create secret generic with --from-env-file would, and turns a Secret back into a .env file.
Anyone who can create a Pod can read your Secrets
The Kubernetes documentation warns that anyone who is authorized to create a Pod in a namespace can use that access to read any Secret in that namespace — for example by mounting it into a container. Keep RBAC minimal, enable encryption at rest, and consider an external store for anything high-value.
Verification
- Every decoded value is checked against an independent oracle: Node's Buffer base64 (RFC 4648, the same standard kubectl's Go encoder uses) plus hard-coded literals such as
password → cGFzc3dvcmQ=. - Round trips are asserted: decode → encode → decode yields identical entries, and server-side fields (
creationTimestamp,resourceVersion) never return. - The e2e spec proves the privacy claim: typing, examples and copies produce no request carrying input, and
location.searchstays empty. - Facts in this text come from the official Kubernetes documentation on Secrets — the
configuration/secretpage of kubernetes.io — read 2026-11-07.