---
title: "Rearrange tools in JavaScript PDF viewer toolbar | Nutrient"
canonical_url: "https://www.nutrient.io/guides/web/user-interface/main-toolbar/rearrange/"
md_url: "https://www.nutrient.io/guides/web/user-interface/main-toolbar/rearrange.md"
last_updated: "2026-05-25T12:14:43.008Z"
description: "Nutrient Web SDK comes with a customizable main toolbar that, by default, includes a number of predefined items. You can rearrange toolbar items using our API."
---

# Rearrange tools in our viewer toolbar

Nutrient Web SDK comes with a customizable main toolbar that, by default, includes a number of predefined items. You can rearrange toolbar items using our API.

Nutrient Web SDK is initialized with a default set of items that can be retrieved via [`NutrientViewer.defaultToolbarItems`](https://www.nutrient.io/api/web/NutrientViewer.html#.defaultToolbarItems):

```js

const defaultItems = NutrientViewer.defaultToolbarItems;
console.log(defaultItems);

```

Items in the toolbar are plain JavaScript objects with the shape of a [`NutrientViewer.ToolbarItem`](https://www.nutrient.io/api/web/NutrientViewer.ToolbarItem.html). To rearrange any item, get the current array of toolbar items via [`instance.toolbarItems`], change the order a toolbar item is displayed in an array, and then set it again to update the UI:

```js

const items = instance.toolbarItems;
// Reverse the order of the toolbar items.
instance.setToolbarItems(items.reverse());

```
---

## Related pages

- [Create a new tool in PDF viewer toolbar](/guides/web/user-interface/main-toolbar/create-a-new-tool.md)
- [Configuring pager toolbar display behavior](/guides/web/user-interface/main-toolbar/pager-display.md)
- [Activate or deactivate tools in our viewer toolbar](/guides/web/customizing-the-interface/controlling-the-toolbar-via-api.md)
- [Customizing tools in the JavaScript PDF viewer toolbar](/guides/web/user-interface/main-toolbar/customize-existing-tools.md)
- [Customizing download/export buttons in our JavaScript PDF viewer](/guides/web/user-interface/main-toolbar/download-export-button.md)
- [Customize dropdown navigation in the viewer toolbar](/guides/web/user-interface/main-toolbar/dropdown-groups.md)
- [Hiding the toolbar in our JavaScript PDF viewer](/guides/web/user-interface/main-toolbar/hide-the-toolbar.md)
- [Adding page labels to navigation in our viewer](/guides/web/features/navigation-page-labels.md)
- [Customize the print button (hide/enable) in our JavaScript PDF viewer](/guides/web/user-interface/main-toolbar/print-button.md)
- [Adjust the placement of the toolbar in our viewer](/guides/web/user-interface/main-toolbar/placement.md)
- [Removing a tool from the toolbar in our JavaScript viewer](/guides/web/customizing-the-interface/customizing-the-toolbar.md)
- [Customizing responsive navigation in our viewer toolbar](/guides/web/user-interface/main-toolbar/responsive-groups.md)

