.env to Kubernetes Secret
Generate Secret or ConfigMap YAML from a dotenv file
Runs 100% in your browser — nothing is ever uploaded.
What is .env to K8s Secret?
Paste a .env file and get a ready-to-apply Kubernetes manifest: a Secret with base64-encoded values or a ConfigMap with safely quoted plain values, plus a sanitized metadata name. Because everything runs locally, your real secrets never touch a server — kubectl apply and done.
How to use .env to K8s Secret
- Paste your .env file into the input box or click “Load sample” to try it.
- Adjust the options in the toolbar if needed (delimiter, table name, format …).
- Click the convert button — the YAML manifest appears instantly in the output pane.
- Copy the result with one click or download it as a file.
ConvertLab FAQ
Is the .env to K8s converter free?
Yes — 100% free, no signup, no limits, no watermarks. Use it as often as you like.
Why are Secret values base64-encoded?
Kubernetes requires data: values in Secrets to be base64-encoded (it's encoding, not encryption). The tool encodes each value correctly, including unicode.
Is my data uploaded to a server?
No. The conversion runs entirely in your browser with JavaScript — your data never leaves your device, which makes the tool safe even for confidential files.
Are these converters free?
Yes — every ConvertLab tool is 100% free with no signup, no limits and no ad walls.
Is my data uploaded anywhere?
No. All conversions (JSON, CSV, XML, YAML, INI, .env) run entirely in your browser. Nothing ever leaves your device.
Do these tools work offline?
Yes — once the page is loaded, every converter works without an internet connection.