Loading Base64 to TOML Converter...
How to Convert Base64 to TOML
A TOML config ends up as Base64 when it has to fit somewhere that takes one line of text: a CI secret, an environment variable, the data field of a Kubernetes Secret. Paste the string below to read the config again and save it as a .toml file.
Paste the Base64 string
Paste the string into the input panel, or upload a .txt or .base64 file that holds it. The Sample button loads a short config with a [server] and a [database] table.
base64 on Linux are fine.data: key, quoted or not, works directly.Read the decoded TOML
A moment after you paste, the TOML appears in the output panel exactly as it was encoded. If the Base64 is broken you get the line and column of the bad character, and if the text is not valid TOML a note says where the problem is.
"00501" or 14.50, dates and comments come out exactly as encoded.Download the .toml file
Click Download to save the text as decoded.toml, byte for byte the same as the file that was encoded, ready to drop back into your project.
What is Base64 to TOML Conversion?
TOML is the config format behind Cargo.toml, pyproject.toml and many app settings files. Base64 turns any bytes into letters, digits, + and /, which is why tools use it to carry a whole config file through a secret or a variable. Decoding reverses that: the bytes come back and are read as text again.
This page reads the bytes as UTF-8, shows the result without touching it and runs a TOML 1.0 check on it. It does not check what the keys mean, only that the file is valid TOML.
Frequently Asked Questions
Why would a TOML file be stored as Base64 in the first place?
Because a lot of places only accept one clean line of text. GitHub Actions and GitLab CI secrets, environment variables and Kubernetes Secret data all hold values that way, so people Base64 a whole Cargo.toml, pyproject.toml, netlify.toml or app config to keep its quotes, brackets and line breaks intact. When you later need to see what is inside, or check that the right version was stored, paste the string here.
I copied the value out of a Kubernetes Secret. Can I paste it as is?
Yes. The data field of a Secret is plain Base64, so the value from kubectl get secret with -o jsonpath works directly. If you copied it out of YAML or JSON with the quotes still around it, that is fine too, and so are line-wrapped Base64, URL-safe Base64 with - and _ and a data URI.
Will numbers, dates and comments come back exactly as they were?
Yes. The Base64 is turned back into bytes and read as UTF-8, and the text is never reformatted. An integer like 8901240544102066246, a quoted "00501", a float written 14.50, an offset date-time, every comment and Windows line endings all come out exactly as encoded. The .toml download holds the same bytes, including a byte-order mark if the original started with one.
What does the note about the text not being valid TOML mean?
After decoding, the text is checked with a TOML 1.0 parser. If it finds a problem, such as a bare word with no quotes, a duplicate key or an integer too big for 64 bits, you see the line and column of the first one. The decoded text is still shown and can still be downloaded, so you can fix it or see whether the wrong file was encoded. If the bytes are an image, a PDF or an archive instead of text, Base64 to File can save them.
Does Base64 keep the secrets in my config safe?
No. Base64 is an encoding, not encryption. Anyone who has the string can read the config in a second, the same way this page does. Kubernetes Secrets are only Base64 by default too, so tokens and passwords in a TOML config still need a real secret store or encryption.
Is the TOML I decode sent anywhere?
No. Decoding and the TOML check run in your browser, and the .toml file is built on your own machine. Nothing is uploaded and nothing is kept, so a reload starts with an empty editor.
Related pages: TOML to Base64 · TOML Validator · Base64 to File
Related Tools
Text to Base64
Encode plain text to Base64 format for APIs and data transmission
Base64 to Text
Decode Base64 encoded data to plain text for reading and debugging
JSON to Base64
Convert JSON data to Base64 format with validation
Base64 to JSON
Convert Base64 encoded data to JSON format with validation
XML to Base64
Convert XML data to Base64 format with validation
Base64 to XML
Convert Base64 encoded data to XML format with validation