Base64 in HTML <audio>
The <audio> element plays sound from a data URI just like from a file URL.
Example
<audio controls src="data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAAP..."></audio> Notes
- Keep embedded sounds short; long audio should be streamed from a file.
- Use
children to offer multiple formats.
Comments (0)
Questions, ideas or a bug in “Base64 in HTML <audio>”? Leave a comment, rate the tool, or reply to others.
No comments yet. Be the first to share your feedback!