# Switch Between Render Formats

The JS Viewer supports 2 render formats - HTML and SVG (by default). Learn how to switch the modes by specifying the renderFormat setting in the JS Viewer API.

## Content



It is required to specify the render format in Js Viewer in the following scenarios:

*   Rounding issues in HTML output. It is not always possible to fix this in HTML, especially in Galley mode.
*   The output is not WYSIWYG sometimes.

The Js Viewer supports three render formats - 'auto' (default), 'html', and 'svg'. For a Page or an RDLX report, set the value to 'html'. For a Section report, set the value to 'svg'

To switch the mode, you should specify the [renderFormat](/activereportsnet/docs/v19.2/developers/create-applications/js-viewer-application/jsviewer-api) setting through the [JS Viewer API](/activereportsnet/docs/v19.2/developers/create-applications/js-viewer-application/jsviewer-api#renderformat):

```html
viewer = GrapeCity.ActiveReports.JSViewer.create({
    element: '#viewer-host',
    renderFormat: 'svg'
});
```
