Tools / Base64 Decoder
Base64 & Base32 Decoder
Paste an encoded string and this tool will decode it automatically. Use Multi-layer Base64 mode to unwrap nested encodings - it keeps decoding until the output stops being valid Base64 or a flag appears.
Try an example
Mode
Paste encoded text above to see the result.
How it works
Base64 encodes binary data as printable ASCII using a 64-character alphabet (A-Z, a-z, 0-9, +, /). The output is padded to a multiple of four characters with =. Base32 uses only uppercase letters and digits 2-7, making it safe for case-insensitive systems.
Some CTF challenges nest multiple layers of Base64 - encode once, then encode that output again, and so on. The Multi-layer mode handles this automatically.
Challenges solved with this tool: picoCTF 2023 - Repetitions, picoCTF 2023 - ReadMyCert.
The standard Base64 alphabet uses A-Z, a-z, 0-9, +, and /. A URL-safe variant replaces + with - and / with _ so the encoded string is safe to include in URLs and filenames without further escaping. JWTs, for instance, always use URL-safe Base64 with padding stripped.
In CTF challenges, Base64 is one of the first encodings to recognize. Giveaways include a string that ends with one or two = padding characters, an alphabet limited to letters, digits, +, and /, and a length that is a multiple of four. Base32 is recognizable by its all-uppercase alphanumeric characters with = padding and a length that is a multiple of eight.
The multi-layer mode is particularly useful when a challenge recursively applies encoding. This technique appears in CTF forensics challenges that encode a flag, then encode the resulting string again several times over. Each round of the Multi-layer decoder peels away one Base64 layer until the output is no longer valid Base64, at which point the decoding stops and the plaintext (often the flag itself) is displayed. Challenges like Repetitions apply exactly six layers of Base64, which this mode handles in one click.
One common edge case: some encoders omit the trailing = padding. If a string looks like Base64 but fails to decode, try appending one or two = characters to pad it to a multiple of four. The tool handles this automatically.
Challenges that use this tool
- interencdecpicoCTF 2024 · Cryptography · Easy
- WebDecodepicoCTF 2024 · Web Exploitation · Easy
- FindAndOpenpicoCTF 2023 · Forensics · Medium
- repetitionspicoCTF 2023 · General Skills · Easy
Challenges where it helps
- Binary DigitspicoCTF 2026 · Forensics · Easy
- bytemancy 0picoCTF 2026 · General Skills · Easy
- bytemancy 1picoCTF 2026 · General Skills · Easy
- bytemancy 2picoCTF 2026 · General Skills · Medium
- bytemancy 3picoCTF 2026 · General Skills · Medium
- GatekeeperpicoCTF 2026 · Reverse Engineering · Medium
- MultiCodepicoCTF 2026 · General Skills · Easy
- Silent StreampicoCTF 2026 · Reverse Engineering · Medium
Browse the full challenge library for 32 more.
Guides that use this tool
- What Is picoCTF? Who Built It, Why, and What It Actually TeachespicoCTF is Carnegie Mellon's free hacking competition, started in 2013 by CMU's own CTF team. Who built it, why, and what its own research changed.
- Esoteric Languages in CTF: Recognising Code That Does Not Look Like CodeIdentify and run the esolangs that show up in CTF: Brainfuck, Whitespace, Rockstar, Befunge, Piet, JSFuck and Redcode, with a fingerprint table and an interpreter.
- Reversing Custom VMs for CTF: Find the Dispatch Loop, Write the EmulatorRecognise a hand-rolled bytecode interpreter inside a binary, recover its opcode table, write a disassembler and emulator in Python, then solve the program it runs.
- picoCTF 2026: Every Challenge, Sorted by What It Actually TeachesA category-by-category guide to the 70 picoCTF 2026 challenges: what changed this season, which ones teach the most, and a walkthrough link for every single one.
- WebAssembly Reversing for CTF: Reading WAT and Recovering Flags from .wasmFind the .wasm a page loads, disassemble it to WAT with wabt, read the stack machine, pull constants out of the data section, and debug it live in DevTools.
- How to Start Playing CTFs: A Complete Beginner's GuideHow to start CTFs: what capture the flag is, the competition formats, the six categories, choosing a first event, and a 30 day plan that actually works.
Tools that pair with this one
- Recipe ChainStack decoders into a pipeline: Base64, hex, ROT, XOR, Morse, URL, Atbash, Vigenère, and more. Magic mode auto-discovers the chain. Bookmark the URL to save it.
- URL Encoder / DecoderEncode and decode URL-encoded (percent-encoded) strings. Useful for web exploitation challenges involving query parameters, form data, and HTTP headers.
- Hex ViewerView text or raw hex bytes as a xxd-style hex dump with byte offset, hex columns, and ASCII sidebar. Highlights printable characters and null bytes.
- Binary to Hex ConverterNormalize binary strings and convert them instantly to hexadecimal, decimal, and octal.
Or browse all 40 CTF tools.