Technical Documentation & FAQ

Image to Base64

  • Section A: The Technical Deep Dive Converting images to Base64 (Data URIs) allows you to inline assets directly into HTML or CSS. This reduces the number of HTTP requests required to load a page, which is a major performance win for small icons and SVGs. JOTO uses the FileReader API to read the raw binary data of your file and wrap it in the correct MIME-type header (e.g., data:image/png;base64,...).

  • Section B: Industry Use Cases

    • Email Templates: Embedding logos into HTML emails to ensure they display even when external images are blocked.

    • React/Vue Components: Inlining small SVG icons within a component to make it fully self-contained.

    • CSS Performance: Reducing 'render-blocking' requests by inlining small background patterns.

  • Section C: Output Variations JOTO provides more than just the string. We generate ready-to-paste snippets for:

    • HTML: <img src='data:...' />

    • CSS: background-image: url('data:...')

    • Raw: Just the Base64 string for JS variables.

  • Section D: Developer FAQ

    • Q: Should I do this for large images? A: No. For images over 10KB, the overhead of Base64 (33% size increase) usually outweighs the benefit of reducing an HTTP request.

    • Q: Are my images private? A: Yes. Your file is processed locally. It is never uploaded to JOTO's servers.