Skip to content

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image to Base64

Free, client-side image to Base64 tools for developers.

Live site: https://image2base64.com

What It Does

  • Convert PNG, JPG, SVG, WebP and GIF images to Base64 data URIs.
  • Decode Base64 image strings back into previewable, downloadable images.
  • Copy ready-to-use raw Base64, data URI, HTML <img> and CSS snippets.
  • Run entirely in the browser with the FileReader API. No upload, no sign-up.

Pages

Local Preview

python3 -m http.server 8000

Then open http://localhost:8000.

Deploy(生产 = Worker image2base64,不是 Pages)

自定义域挂在 Workers domain image2base64.com。改完后:

rsync -a --delete \
  --exclude '.git' --exclude 'dist' --exclude '.claude' --exclude '.wrangler' \
  --exclude 'worker.js' --exclude 'wrangler.toml' --exclude '.assetsignore' \
  --exclude 'check_seo_consistency.py' --exclude 'SEO_LOG.md' --exclude 'README.md' \
  --exclude '_会话交接*' --exclude '.gitignore' --exclude '.DS_Store' --exclude 'LICENSE' \
  ./ dist/
npx wrangler deploy

301 写在 worker.js/jpeg-to-base64/jpg-to-base64/base64-to-jpeg/base64-to-jpg)。Pages 项目仅作旁路预览。

SEO consistency check

Deterministic scan (unique H1 / canonical / sitemap ↔ disk):

python3 check_seo_consistency.py

Exit 0 = no FAIL(WARN 例如 jpeg→jpg 合并仍算通过)。--json 可出机器可读报告。

Deploy

This is a plain static site. Deploy the repository root to any static host, such as Cloudflare Pages, Netlify, Vercel or GitHub Pages.

License

MIT

About

Client-side image to Base64 converter for PNG, JPG, SVG, WebP and GIF

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages