logo
SEE ALGORITHMS
SORTING
    Bubble Sort
    Insertion Sort
    Selection Sort
    Heap Sort
    Radix Sort
    Merge Sort
    Quick Sort

Embed Sorting Visualizers

A simple guide on how to use the embed URL from See Algorithms to display live sorting animations.


Why Embed Visualizers?

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.

How to Embed

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}
Basic Example:
<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.

Choosing the Right Size

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.

Final Reflection

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.


Curious to Learn More?

Hand-picked resources to deepen your understanding

Beginner Friendly
Coding Interview Bootcamp: Algorithms + Data Structures

Learn essential data structures and algorithms step-by-step with practical JavaScript examples.

Practical Guide
JavaScript Algorithms & Data Structures Masterclass

Master DSA fundamentals, problem-solving techniques, and advanced structures using JavaScript.

Deep Dive
Master the Coding Interview: Data Structures + Algorithms

Prepare for top tech interviews with advanced DSA concepts and real-world coding challenges.

Learn DSA on Udemy
Learn DSA on Udemy
As an Udemy Associate, I earn from qualifying purchases.

© 2025 See Algorithms. Code licensed under MIT, content under CC BY-NC 4.0.