Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


base64-decode() Function (SLAX)


SLAX Syntax


Decode BASE64 encoded data. BASE64 is a means of encoding arbitrary data into a radix-64 format that is more easily transmitted, typically using STMP or HTTP.

Include the optional control string argument to replace any non-XML control characters in the decoded string with the specified string. If the argument is an empty string, non-XML characters are removed. The decoded data is returned to the caller.



(Optional) String to replace non-XML control characters in the decoded string. Use an empty string argument to remove the non-XML characters.


BASE64 encoded data.

Return Value


Decoded data.

Usage Examples

Release Information

Function introduced in version 1.1 of the SLAX language, which is supported in Junos OS Release 12.2 and later releases.