Base64 Decoder
Base64 is a way to write binary data as plain text, and it appears all over the Power Platform: file contents from SharePoint and OneDrive actions, email attachments from Outlook, headers in HTTP requests and the payload of a JWT. This Base64 decoder turns those strings back into readable text. It understands standard and URL-safe Base64, ignores line breaks and missing padding, and reports a clear error when the input is not valid Base64.
Also known as: base64 decode, decode base64, base64 to text, base64 decode online.
Your data is processed locally in your browser and is not uploaded to our servers.
Features
- Standard and URL-safe Base64
- Tolerates missing padding and line breaks
- Clear error for invalid input
How to use the Base64 Decoder
- Copy the Base64 string, for example the contentBytes value of an email attachment or the content returned by a Get file content action.
- Paste it into the input box. Line breaks are fine.
- Click Decode Base64.
- Read the result. If the data is text, JSON or CSV, you will see it straight away. If you see an error about UTF-8, the data is probably a binary file such as an image or a PDF.
- Copy the decoded text and use it in your flow or app.
Real-world use case: checking attachments and headers in Power Automate
A flow triggers when an email with a CSV attachment arrives, and a later step fails because the data is not in the format you expected. In the run history, the attachment appears as contentBytes, a long Base64 string. Paste that value here and decode it. In seconds you can see whether the file really contains comma-separated text, whether it uses semicolons instead of commas, or whether it is something else entirely.
Inside the flow, the matching expressions are base64ToString() for text content and base64ToBinary() when you need to pass the file on to another action. For example, base64ToString(items('Apply_to_each')?['contentBytes']) returns the CSV text. Knowing what that text looks like before you write the expression saves many failed test runs.
HTTP actions are the second common case. Basic authentication sends a header such as Authorization: Basic dXNlcjpwYXNz. Decode the part after Basic to check that it contains username:password in the right order. Use test credentials only. The same decoder reads the header and payload parts of a JWT, which use URL-safe Base64, although the JWT Decoder shows them more conveniently.
In Power Apps, there is no simple function that turns Base64 back into text, so it helps to check a value here first. If an Image control shows nothing, paste the Base64 part of the data URI into the decoder. An error means the string was cut off or contains stray characters.
Example input and output
Input: Base64 string
eyJvcmRlcklkIjoxMDAxLCJzdGF0dXMiOiJhcHByb3ZlZCJ9
Output after clicking Decode Base64
{"orderId":1001,"status":"approved"}Basic authentication header value
dXNlcjpwYXNz -> user:pass
The same job inside a flow
base64ToString(items('Apply_to_each')?['contentBytes'])Frequently asked questions
How do I decode Base64 in Power Automate?
Use base64ToString() for text, for example base64ToString(triggerBody()?['contentBytes']). Use base64ToBinary() when you need the file itself. To preview what a value contains before you build the expression, paste it into a Base64 decoder.
Why does my Base64 string fail to decode?
The string may be cut off, contain characters outside the Base64 alphabet, or represent a binary file such as an image or PDF instead of text. URL-safe Base64 uses - and _ instead of + and /, and this decoder accepts both.
Is Base64 the same as encryption?
No. Base64 only changes how data is written, and anyone can reverse it. Never use it to protect passwords or secrets.
Why use PowerApps Ninja?
Pasting encoded attachments and headers into a random website can leak customer data. PowerApps Ninja decodes everything locally in your browser, with no upload and no account. The page also explains the Power Automate functions that do the same job inside a flow, so you can move from checking a value to building the expression.