Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Image To Base64 clipboardNew to Visual Studio Code? Get it now.
Image To Base64 clipboard

Image To Base64 clipboard

Green.csv

|
22,449 installs
| (4) | Free
Adds to contextual menu encode to base 64 and set into the clipboard
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Support & Feedback

Have ideas, suggestions, or feedback? I'd love to hear from you! Reach me at azvy@greencsv.dev.

If you find this extension helpful and would like to support its development, feel free to contribute here. Your support is greatly appreciated!

⚠️ Caution

  • Base64 increases file size by ~33%.
  • Large files (e.g. videos, big PDFs) are better left as links.

Image to Base 64 Clipboard

Supported files: ".png", ".jpg", ".jpeg", ".gif", ".webp", ".ico", ".svg", ".woff", ".woff2", ".ttf", ".mp3", ".ogg", ".mp4", ".pdf", ".json", ".html"

Features

✨Added✨ SVG Support 👽

If your preview uses img src="data:image/svg+xml;base64,... it’ll render like a champ in the browser and VS Code Webview.

✨ Preview image from selected Base64

  • Works with data:image/png;base64,... strings.
  • Opens in a theme-aware preview panel with visible transparency and metadata.

🔐 Encode Image Files to Base64

  • Right-click on an image in the Explorer and select Base64: Encode Image File.

💬 Encode Selected Text to Base64

  • Supports multiple selections in the editor.

🧩 Decode Base64 to ASCII Text

  • Works with any Base64 block.
  • Clipboard and inline decode supported.

🖼 Visual Preview

  • Preview the selected Base64 string from the command palette or the contextual menu.

🎨 Theme-Adaptive Preview

  • Automatically switches between light and dark styling for better visibility.

📋 Clipboard Integration

  • Every command copies the result automatically.

Extended Base64 Support

This extension now supports encoding a wide range of file types into Base64:

  • 🖼️ Images: PNG, JPEG, GIF, WebP, ICO, SVG
  • 🔤 Fonts: WOFF, WOFF2, TTF
  • 🔊 Audio/Video: MP3, OGG, MP4
  • 📄 Documents: PDF, JSON, HTML

Known Issues

By the moment nope

Get in Touch

Feel free to share feature requests, report issues, or just say hi — I'm always happy to connect!
📫 azvy@greencsv.dev

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft