Base64 PreviewA Visual Studio Code extension for seeing what a piece of Base64 actually is. Copy some Base64, paste it, or select it in the editor, and the panel decodes it, works out what it contains — text, JSON, an image, a PDF, an archive, a font — and shows it in the most useful way it can. Whatever it is, you can save it as a real file with the right extension, without anything leaving your machine.
PrivacyNo telemetry. No network requests. Nothing you paste is stored. The clipboard is read only when you run a command, and never written to unless you press a copy button. Files are written only where you choose in the save dialog. Decoding and file-type detection run entirely on your machine. See SECURITY.md for the full scope. Features
How detection worksThe decoded bytes are matched against the leading bytes ("magic numbers") of
well-known formats first. If none match, the bytes are decoded as UTF-8 (or as
UTF-16 when a byte order mark is present); text that decodes cleanly is then
classified by its content — JSON, SVG, HTML, XML, PEM, RTF, or a JWT — and
otherwise treated as plain text. A Formats that have no inline preview in VS Code — PDFs, archives, Office documents, audio, video — are identified and can be saved; open the saved file in a suitable application. UsageCopy some Base64, open the Command Palette ( To decode Base64 that is already in your editor: select it, right-click, and choose Base64: Decode Selection. With nothing selected, this command falls back to the clipboard as well. Use the Preview / Hex toggle to switch between the rendered view and the raw bytes. Press Save as file… to write the decoded content to disk; the save dialog suggests a file name with the detected extension. If the decoded text turns out to be a JSON Web Token, the companion JWT Preview extension shows its claims in detail. InstallationInstall "Base64 Preview" from the Visual Studio Code Marketplace, or download
a Feedback and security
License |
