A simple guide on how to use the embed URL from See Algorithms to display live sorting animations.
Reading about algorithms is often a passive experience. A diagram may help, but it still represents only a frozen moment of the process. However, building an interactive data structure or sorting animation from scratch just to include it in a blog post or tutorial can be incredibly time-consuming.
That’s why we’ve made our visualizers embeddable. Whether you’re a teacher building course materials on Notion, a student taking notes, or a developer writing a technical blog on Medium, you can instantly add high-quality, interactive sorting animations directly to your content.
By embedding these visualizers, your readers can manually input arrays, play, pause, and step through the algorithms directly within your page. This significantly enhances the learning experience and keeps them engaged without ever having to leave your website.
Each sorting visualizer is available through a dedicated embed page. This page is designed specifically for embedding. It removes unnecessary navigation and focuses entirely on the visualization interface. To embed the visualizer in your website, you simply place the URL inside an iframe element.
The structure of the URL follows a simple pattern:
https://see-algorithms.com/sorting/embed/{Algorithm}<iframe
src="https://see-algorithms.com/sorting/embed/MergeSort"
width="100%"
height="400px"
frameborder="0">
</iframe>The iframe acts like a window that loads the external site. Modern editors like Notion or Medium allow you to simply paste the URL and it will automatically convert it into an interactive embed.
The width is typically set to 100% so the visualization adapts to the width of your container. The height can be adjusted depending on the sorting algorithm.
A height between 400 and 600 pixels works well for most of the algorithms. This provides enough room for the algorithm controls and the animated elements without making the page feel cramped.
Embedded visualizers are particularly useful in programming tutorials, technical blogs, and educational articles. Instead of describing each step in words, you can place the visualization directly after the explanation. The explanation provides conceptual clarity, while the visualization confirms the behavior visually.
When used thoughtfully, a simple iframe can transform an article from something that merely describes algorithms into something that lets readers truly observe them.
Hand-picked resources to deepen your understanding
© 2025 See Algorithms. Code licensed under MIT, content under CC BY-NC 4.0.