Base64 in HTML <object>

<object> is like <embed> but allows fallback content between its tags.

Example

<object data="data:application/pdf;base64,JVBERi0xLjQKJ..." type="application/pdf" width="100%" height="600">
  <p>Your browser cannot display PDFs. <a href="data:application/pdf;base64,JVBERi0..." download="file.pdf">Download it</a>.</p>
</object>

Notes

  • The fallback is shown when the type is not supported.

Other HTML tags

Related tools and guides

Comments (0)

Questions, ideas or a bug in “Base64 in HTML <object>”? Leave a comment, rate the tool, or reply to others.

No comments yet. Be the first to share your feedback!

Leave a comment

Rate this tool:
Esc
↑ ↓ move↵ openEsc close